diff --git a/server/gameserver/incubator.cc b/server/gameserver/incubator.cc index eb2eb4a9..769134f8 100644 --- a/server/gameserver/incubator.cc +++ b/server/gameserver/incubator.cc @@ -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 } }