修复空投问题

This commit is contained in:
aozhiwei 2020-02-28 18:02:14 +08:00
parent 42982299ca
commit 72da641375

View File

@ -983,7 +983,8 @@ void Room::UpdateGasInactive()
} }
CombineTeam(); CombineTeam();
NotifyGameStart(); NotifyGameStart();
SecondRandPoint(); NotifyWxVoip();
InitAirDrop();
#else #else
gas_data.gas_mode = GasJump; gas_data.gas_mode = GasJump;
gas_data.gas_start_frameno = frame_no; gas_data.gas_start_frameno = frame_no;
@ -1601,6 +1602,7 @@ void Room::SecondRandPoint()
} }
hum->FindLocation(); hum->FindLocation();
hum->RefreshView(); hum->RefreshView();
grid_service.MoveHuman(hum);
} }
} }
@ -1610,6 +1612,15 @@ void Room::NotifyGameStart()
for (auto& pair : accountid_hash_) { for (auto& pair : accountid_hash_) {
pair.second->SendNotifyMsg(msg); 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; waiting_start = true;
xtimer.AddDeadLineTimerAndAttach(SERVER_FRAME_RATE * 2, xtimer.AddDeadLineTimerAndAttach(SERVER_FRAME_RATE * 2,
a8::XParams() a8::XParams()