From: Pasi Kallinen Date: Sun, 1 Mar 2020 08:13:50 +0000 (+0200) Subject: Fix Fort Ludios room type X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce3b45944bba89240c768b068733e5f19b40b6c9;p=nethack Fix Fort Ludios room type ... and add an impossible when lua tries to create unknown room type. --- diff --git a/dat/knox.lua b/dat/knox.lua index cc38b6a44..87832a3a2 100644 --- a/dat/knox.lua +++ b/dat/knox.lua @@ -65,7 +65,7 @@ function treasure_spot(x,y) end end -des.region({ region={21,08,35,11}, lit=1, type="orginary" }) +des.region({ region={21,08,35,11}, lit=1, type="ordinary" }) local treasury = selection.area(21,08,35,11); treasury:iterate(treasure_spot); diff --git a/src/sp_lev.c b/src/sp_lev.c index a17abfdcd..aed5a08e8 100755 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -3496,6 +3496,8 @@ int defval; res = room_types[i].type; break; } + if (!room_types[i].name) + impossible("Unknown room type '%s'", roomstr); } Free(roomstr); return res;