This commit is contained in:
aozhiwei 2022-09-28 17:18:43 +08:00
parent 245277a7be
commit d09da157b0

View File

@ -91,15 +91,19 @@ void PveData::OnBeKill(Hero* hero)
}); });
} }
if (room->IsDestoryRoom()) { if (room->IsDestoryRoom()) {
if (GetWave() < room->pve_mode_meta->next_door.size()) { if (GetWave() + 1 < max_wave) {
a8::Vec2 point = room->pve_mode_meta->next_door[room->pve_data.GetWave()]; if (GetWave() < room->pve_mode_meta->next_door.size()) {
#if 0 a8::Vec2 point = room->pve_mode_meta->next_door[room->pve_data.GetWave()];
room->CreateObstacle(PVE_DOOR_THING_ID, point.x, point.y); #if 0
#endif room->CreateObstacle(PVE_DOOR_THING_ID, point.x, point.y);
FlyDoor(room, point, 50); #endif
FlyDoor(room, point, 50);
}
} }
} else { } else {
room->GetIncubator()->NextWave(); if (GetWave() + 1 < max_wave) {
room->GetIncubator()->NextWave();
}
} }
} }
} }