diff --git a/server/gameserver/android.ai.cc b/server/gameserver/android.ai.cc index d40129a..172522b 100644 --- a/server/gameserver/android.ai.cc +++ b/server/gameserver/android.ai.cc @@ -68,8 +68,7 @@ void AndroidNewAI::Update(int delta_time) } } #endif - if (hum->room->GetGasData().gas_mode == GasInactive || - hum->room->GetGasData().gas_mode == GasJump) { + if (hum->room->GetGasData().gas_mode == GasInactive) { DefaultAi(); return; } diff --git a/server/gameserver/constant.h b/server/gameserver/constant.h index c66521c..b72db83 100755 --- a/server/gameserver/constant.h +++ b/server/gameserver/constant.h @@ -437,7 +437,11 @@ const int ADPLAY_BUFFID = 1006; const int FIXED_OBJECT_MAXID = 20140; -const int MAX_ROOM_IDX = 2018; +#ifdef DEBUG +const int MAX_ROOM_IDX = 100; +#else +const int MAX_ROOM_IDX = 1024; +#endif const int VIEW_RANGE = 512; diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 0d3fb79..c45def3 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -1150,6 +1150,7 @@ void Room::UpdateGasInactive() ShuaPlane(); NotifyWxVoip(); InitAirDrop(); + InitAndroidAI(); RoomMgr::Instance()->ActiveRoom(GetRoomUuid()); int auto_jump_interval = MetaMgr::Instance()->GetSysParamAsInt("auto_jump_interval"); auto_jump_timer_ = xtimer.AddRepeatTimerAndAttach @@ -2227,7 +2228,6 @@ void Room::NotifyGameStart() if (GetRoomMode() == kZombieMode) { ZombieModeStart(); } - InitAndroidAI(); } void Room::InitObstacleDatas()