修复空投问题
This commit is contained in:
parent
42982299ca
commit
72da641375
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user