1
This commit is contained in:
parent
3e0df3f04d
commit
db638c564f
@ -4,6 +4,7 @@
|
|||||||
#include "human.h"
|
#include "human.h"
|
||||||
#include "metadata.h"
|
#include "metadata.h"
|
||||||
#include "incubator.h"
|
#include "incubator.h"
|
||||||
|
#include "roomobstacle.h"
|
||||||
|
|
||||||
#include "pvedata.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
|
||||||
}
|
}
|
||||||
|
@ -927,7 +927,7 @@ void RoomObstacle::ProcPortal()
|
|||||||
if (room->IsGameOver()) {
|
if (room->IsGameOver()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (room->IsPveRoom()) {
|
if (!room->IsPveRoom()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!grid_list_) {
|
if (!grid_list_) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user