This commit is contained in:
aozhiwei 2023-12-29 16:12:12 +08:00
parent 69cc232be0
commit 42e3011811
2 changed files with 4 additions and 1 deletions

View File

@ -2408,6 +2408,9 @@ long long Room::GetGasInactiveTime()
inactive_time = 12;
}
#endif
if (IsMobaModeRoom()) {
inactive_time = 12;
}
inactive_time = std::max((long long)0, inactive_time - acc_inactive_time_);
if (IsNewerMap()) {
inactive_time = 10;

View File

@ -834,7 +834,7 @@ void RoomMgr::AdjustCMJoin(cs::CMJoin* msg)
{
msg->set_force_enter_newbie_room(false);
msg->set_pve_instance_id(0);
#ifdef MYDEBUG
#if 1
const mt::Map* map_meta = mt::Map::GetById(msg->mapid());
if (map_meta && map_meta->is_moba()) {
msg->set_room_mode(kMobaMode);