Fix Fort Ludios room type

... and add an impossible when lua tries to create unknown room type.
This commit is contained in:
Pasi Kallinen
2020-03-01 10:13:50 +02:00
parent 95385cfc40
commit ce3b45944b
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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;