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()