From 2261f998a6ff8049255fb2a00417a075c5adcdb6 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 9 Jul 2021 20:31:47 +0300 Subject: [PATCH] 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. --- src/shknam.c | 2 +- src/sp_lev.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shknam.c b/src/shknam.c index 2f7e1998c..fb12771e2 100644 --- a/src/shknam.c +++ b/src/shknam.c @@ -613,7 +613,7 @@ shkinit(const struct shclass* shp, struct mkroom* sroom) if (wizard) { 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, sroom->hy); pline("doormax=%d doorct=%d fdoor=%d", g.doorindex, sroom->doorct, diff --git a/src/sp_lev.c b/src/sp_lev.c index a04a1677f..e4a7095d7 100755 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -3784,6 +3784,7 @@ lspo_room(lua_State *L) } else lua_pop(L, 1); spo_endroom(g.coder); + add_doors_to_room(tmpcr); return 0; } if (g.in_mk_themerooms)