From 72da6413756b3259a35e6abdc8f2f2f84b02656c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 28 Feb 2020 18:02:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E6=8A=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/room.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 9369713..bb157d2 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -983,7 +983,8 @@ void Room::UpdateGasInactive() } CombineTeam(); NotifyGameStart(); - SecondRandPoint(); + NotifyWxVoip(); + InitAirDrop(); #else gas_data.gas_mode = GasJump; gas_data.gas_start_frameno = frame_no; @@ -1601,6 +1602,7 @@ void Room::SecondRandPoint() } hum->FindLocation(); hum->RefreshView(); + grid_service.MoveHuman(hum); } } @@ -1610,6 +1612,15 @@ void Room::NotifyGameStart() for (auto& pair : accountid_hash_) { pair.second->SendNotifyMsg(msg); } + xtimer.AddDeadLineTimerAndAttach(SERVER_FRAME_RATE * 1, + a8::XParams() + .SetSender(this), + [] (const a8::XParams& param) + { + Room* room = (Room*)param.sender.GetUserData(); + room->SecondRandPoint(); + }, + &xtimer_attacher.timer_list_); waiting_start = true; xtimer.AddDeadLineTimerAndAttach(SERVER_FRAME_RATE * 2, a8::XParams()