1
This commit is contained in:
parent
fb12f6f267
commit
fae243676a
@ -855,7 +855,11 @@ void Room::UpdateGas()
|
|||||||
NotifyWxVoip();
|
NotifyWxVoip();
|
||||||
RoomMgr::Instance()->ActiveRoom(room_uuid);
|
RoomMgr::Instance()->ActiveRoom(room_uuid);
|
||||||
battle_start_frameno_ = frameno;
|
battle_start_frameno_ = frameno;
|
||||||
battle_report_timer_ = xtimer.AddDeadLineTimerAndAttach(kSERVER_FRAME_RATE * 15,
|
int game_duration = MetaMgr::Instance()->game_duration;
|
||||||
|
if (App::Instance()->HasFlag(8)) {
|
||||||
|
game_duration = 15;
|
||||||
|
}
|
||||||
|
battle_report_timer_ = xtimer.AddDeadLineTimerAndAttach(kSERVER_FRAME_RATE * game_duration,
|
||||||
a8::XParams()
|
a8::XParams()
|
||||||
.SetSender(this),
|
.SetSender(this),
|
||||||
[] (const a8::XParams& param)
|
[] (const a8::XParams& param)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user