From 2f6d753f2f24a8894ef00c031e1a27ef1731cccf Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 29 Dec 2023 16:23:23 +0800 Subject: [PATCH] 1 --- server/gameserver/room.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 0048d156..23396aa9 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -331,9 +331,6 @@ void Room::AddPlayer(Player* hum, std::shared_ptr init_born_point, bo if (!no_matchteam) { MatchTeam(hum); } -#ifdef MYDEBUG - hum->side = a8::RandEx(1, 2); -#endif hum->PushJoinRoomMsg(); ++alive_count_; alive_count_chged_frameno_ = GetFrameNo(); @@ -354,6 +351,7 @@ void Room::AddPlayer(Player* hum, std::shared_ptr init_born_point, bo } #if 1 if (IsMobaModeRoom()) { + hum->side = a8::RandEx(1, 2); CreateAndroid(7); std::vector humans; for (auto& pair : human_hash_) { @@ -2409,7 +2407,7 @@ long long Room::GetGasInactiveTime() } #endif if (IsMobaModeRoom()) { - inactive_time = 12; + inactive_time = 7; } inactive_time = std::max((long long)0, inactive_time - acc_inactive_time_); if (IsNewerMap()) {