1
This commit is contained in:
parent
732695b044
commit
f0419e05f6
@ -7,6 +7,8 @@
|
||||
#include "hero.h"
|
||||
#include "player.h"
|
||||
|
||||
#include "cs_proto.pb.h"
|
||||
|
||||
void Incubator::Init()
|
||||
{
|
||||
xtimer_attacher_.xtimer = &room->xtimer;
|
||||
@ -323,7 +325,7 @@ void Incubator::SpawnWaveMon(int wave)
|
||||
if (!hero) {
|
||||
A8_ABORT();
|
||||
}
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG1
|
||||
{
|
||||
room->xtimer.AddDeadLineTimerAndAttach
|
||||
(
|
||||
@ -403,5 +405,18 @@ void Incubator::NextWave()
|
||||
int remain_time = room->xtimer.GetRemainTime(timer);
|
||||
room->xtimer.ModifyTimer(timer, remain_time - acc_time);
|
||||
}
|
||||
#if 1
|
||||
room->TraversePlayerList
|
||||
(
|
||||
a8::XParams(),
|
||||
[this] (Player* hum, a8::XParams& param)
|
||||
{
|
||||
cs::SMPvePassWave notify_msg;
|
||||
notify_msg.set_new_wave(hum->room->pve_data.GetWave());
|
||||
notify_msg.set_pve_max_wave(room->pve_data.max_wave);
|
||||
hum->SendNotifyMsg(notify_msg);
|
||||
return true;
|
||||
});
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user