This commit is contained in:
aozhiwei 2021-06-07 19:59:46 +08:00
parent b9dd8cef53
commit dca1e95c7a
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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),