From 5afc890c5894354e8432e294ac3f5235c7a1de15 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 22 Aug 2022 19:46:57 +0800 Subject: [PATCH] 1 --- server/gameserver/incubator.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/gameserver/incubator.cc b/server/gameserver/incubator.cc index 6bc54097..fafd6c3c 100644 --- a/server/gameserver/incubator.cc +++ b/server/gameserver/incubator.cc @@ -249,17 +249,17 @@ void Incubator::SpawnWaveMon(int wave) if (wave >= room->pve_mode_meta->waves.size()) { abort(); } + if (room->pve_data.refreshed_mon > 0 && + room->pve_data.mon_num <= 0) { + timeout_ = true; + return; + } if (wave > 0 && room->IsDestoryRoom()) { return; } if (room->IsGameOver()) { return; } - if (room->pve_data.refreshed_mon > 0 && - room->pve_data.mon_num <= 0) { - timeout_ = true; - return; - } auto& mons = room->pve_mode_meta->waves[wave]; for (MetaData::PveGeminiContent* content : mons) { room->xtimer.AddDeadLineTimerAndAttach