1
This commit is contained in:
parent
5af1487982
commit
7bff245fcb
@ -395,7 +395,19 @@ void Room::AddPlayer(Player* hum, std::shared_ptr<BornPoint> init_born_point, bo
|
||||
team_hash_.erase(t->GetTeamId());
|
||||
}
|
||||
}
|
||||
hum->SendMobaTeamNotify();
|
||||
xtimer.SetIntervalEx
|
||||
(SERVER_FRAME_RATE,
|
||||
[this, hum] (int event, const a8::Args* args)
|
||||
{
|
||||
if (a8::TIMER_EXEC_EVENT == event) {
|
||||
if (!IsGameOver() && GetGasData().GetGasMode() == GasInactive) {
|
||||
hum->SendMobaTeamNotify();
|
||||
} else {
|
||||
xtimer.DeleteCurrentTimer();
|
||||
}
|
||||
}
|
||||
},
|
||||
&hum->xtimer_attacher);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user