diff --git a/server/gameserver/constant.h b/server/gameserver/constant.h index 714d41f..d4d17ed 100755 --- a/server/gameserver/constant.h +++ b/server/gameserver/constant.h @@ -337,6 +337,7 @@ const int DEF_WEAPON_ID = 12103; const int SERVER_FRAME_RATE = 20; const int SYNC_FRAME_RATE = 10; const float FRAME_RATE_MS = 1000.0f / SERVER_FRAME_RATE; +const int NEXT_FRAME_TIMER = 2; const int MAX_WEAPON_NUM = 9; const int MAX_SKIN_LV = 9; diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 0bee13a..fc716da 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -718,7 +718,7 @@ void Room::InternalRemoveObjectLater(Entity* entity, a8::XTimerAttacher& xtimer_ #endif delete entity; }; - xtimer.AddDeadLineTimerAndAttach(2, + xtimer.AddDeadLineTimerAndAttach(NEXT_FRAME_TIMER, a8::XParams() .SetSender(entity) .SetParam1(this),