Fix des.room doors

Fix special level des.room shop doors broken by my recent commit.
Mark the shopdoor error as impossible, so the fuzzer stops there.
This commit is contained in:
Pasi Kallinen
2021-07-09 20:32:00 +03:00
parent 50b22449d1
commit 2261f998a6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -613,7 +613,7 @@ shkinit(const struct shclass* shp, struct mkroom* sroom)
if (wizard) { if (wizard) {
register int j = sroom->doorct; register int j = sroom->doorct;
pline("Where is shopdoor?"); impossible("Where is shopdoor?");
pline("Room at (%d,%d),(%d,%d).", sroom->lx, sroom->ly, sroom->hx, pline("Room at (%d,%d),(%d,%d).", sroom->lx, sroom->ly, sroom->hx,
sroom->hy); sroom->hy);
pline("doormax=%d doorct=%d fdoor=%d", g.doorindex, sroom->doorct, pline("doormax=%d doorct=%d fdoor=%d", g.doorindex, sroom->doorct,
+1
View File
@@ -3784,6 +3784,7 @@ lspo_room(lua_State *L)
} else } else
lua_pop(L, 1); lua_pop(L, 1);
spo_endroom(g.coder); spo_endroom(g.coder);
add_doors_to_room(tmpcr);
return 0; return 0;
} }
if (g.in_mk_themerooms) if (g.in_mk_themerooms)