1
This commit is contained in:
parent
5728dd0f1d
commit
6db1353c62
@ -20,11 +20,12 @@
|
||||
|
||||
void Incubator::Init()
|
||||
{
|
||||
wait_alloc_time_ = 50 + mt::Param::s().wait_cloud_time;
|
||||
xtimer_attacher_.SetOwner(&room->xtimer);
|
||||
if (!room->IsPveRoom()) {
|
||||
room->xtimer.SetTimeoutEx
|
||||
(
|
||||
SERVER_FRAME_RATE * (mt::Param::s().wait_cloud_time + rand() % 3),
|
||||
SERVER_FRAME_RATE * (wait_alloc_time_),
|
||||
[this] (int event, const a8::Args* args)
|
||||
{
|
||||
if (a8::TIMER_EXEC_EVENT == event) {
|
||||
|
@ -26,6 +26,7 @@ private:
|
||||
void SpawnWaveMon(int wave);
|
||||
|
||||
private:
|
||||
int wait_alloc_time_ = 0;
|
||||
bool timeout_ = false;
|
||||
std::vector<Human*> hold_humans_;
|
||||
a8::XTimerWp alloc_timer_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user