1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-13 00:29:44 +00:00

debug cleanup

This commit is contained in:
Zeno Rogue
2019-05-13 01:57:40 +02:00
parent 402b6aa0ad
commit df3e21b310
27 changed files with 251 additions and 244 deletions

View File

@@ -3189,9 +3189,9 @@ auto ccm = addHook(clearmemory, 0, [] () {
eliminate_if(heat::offscreen_fire, is_cell_removed);
eliminate_if(princess::infos, [] (princess::info*& i) {
if(is_cell_removed(i->princess) || is_cell_removed(i->prison)) {
DEBSM(printf("removing a princess\n");)
DEBB(DF_MEMORY, ("removing a princess"))
if(i->princess && !is_cell_removed(i->princess)) {
DEBSM(printf("faking a princess\n");)
DEBB(DF_MEMORY, ("faking a princess"))
princess::newFakeInfo(i->princess);
}
delete i;