Fix Fort Ludios room type
... and add an impossible when lua tries to create unknown room type.
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ function treasure_spot(x,y)
|
|||||||
end
|
end
|
||||||
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);
|
local treasury = selection.area(21,08,35,11);
|
||||||
treasury:iterate(treasure_spot);
|
treasury:iterate(treasure_spot);
|
||||||
|
|
||||||
|
|||||||
@@ -3496,6 +3496,8 @@ int defval;
|
|||||||
res = room_types[i].type;
|
res = room_types[i].type;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (!room_types[i].name)
|
||||||
|
impossible("Unknown room type '%s'", roomstr);
|
||||||
}
|
}
|
||||||
Free(roomstr);
|
Free(roomstr);
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Reference in New Issue
Block a user