This commit is contained in:
aozhiwei 2023-12-29 16:23:23 +08:00
parent 42e3011811
commit 2f6d753f2f

View File

@ -331,9 +331,6 @@ void Room::AddPlayer(Player* hum, std::shared_ptr<BornPoint> init_born_point, bo
if (!no_matchteam) { if (!no_matchteam) {
MatchTeam(hum); MatchTeam(hum);
} }
#ifdef MYDEBUG
hum->side = a8::RandEx(1, 2);
#endif
hum->PushJoinRoomMsg(); hum->PushJoinRoomMsg();
++alive_count_; ++alive_count_;
alive_count_chged_frameno_ = GetFrameNo(); alive_count_chged_frameno_ = GetFrameNo();
@ -354,6 +351,7 @@ void Room::AddPlayer(Player* hum, std::shared_ptr<BornPoint> init_born_point, bo
} }
#if 1 #if 1
if (IsMobaModeRoom()) { if (IsMobaModeRoom()) {
hum->side = a8::RandEx(1, 2);
CreateAndroid(7); CreateAndroid(7);
std::vector<Human*> humans; std::vector<Human*> humans;
for (auto& pair : human_hash_) { for (auto& pair : human_hash_) {
@ -2409,7 +2407,7 @@ long long Room::GetGasInactiveTime()
} }
#endif #endif
if (IsMobaModeRoom()) { if (IsMobaModeRoom()) {
inactive_time = 12; inactive_time = 7;
} }
inactive_time = std::max((long long)0, inactive_time - acc_inactive_time_); inactive_time = std::max((long long)0, inactive_time - acc_inactive_time_);
if (IsNewerMap()) { if (IsNewerMap()) {