This commit is contained in:
aozhiwei 2022-08-29 11:29:36 +08:00
parent 3e0df3f04d
commit db638c564f
2 changed files with 17 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#include "human.h"
#include "metadata.h"
#include "incubator.h"
#include "roomobstacle.h"
#include "pvedata.h"
@ -61,4 +62,19 @@ void PveData::OnBeKill(Hero* hero)
}
}
}
#ifdef DEBUG
{
static int xxxx = 0;
if (xxxx == 0 && room->IsDestoryRoom()) {
a8::Vec2 point = room->pve_mode_meta->next_door[room->pve_data.wave];
RoomObstacle* obstacle = room->CreateObstacle(PVE_DOOR_THING_ID, point.x, point.y);
if (obstacle) {
obstacle->Active();
}
a8::XPrintf("xxxx %d pos:%d,%d\n", {PVE_DOOR_THING_ID, point.x, point.y});
xxxx = 1;
}
}
#endif
}

View File

@ -927,7 +927,7 @@ void RoomObstacle::ProcPortal()
if (room->IsGameOver()) {
return;
}
if (room->IsPveRoom()) {
if (!room->IsPveRoom()) {
return;
}
if (!grid_list_) {