Skip to content
Snippets Groups Projects
Commit 7960654f authored by DarkGod's avatar DarkGod
Browse files

Fixed a very rare issue in Reknor that could prevent the stairs to level 2 from appearing

parent 25096b45
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -86,7 +86,7 @@ return {
local l = game.zone:makeEntityByName(level, "terrain", "IRON_THRONE_EDICT")
if not l then return end
for _, coord in pairs(util.adjacentCoords(level.default_up.x, level.default_up.y)) do
if game.level.map:isBound(coord[1], coord[2]) and (i ~= 0 or j ~= 0) and not game.level.map:checkEntity(coord[1], coord[2], engine.Map.TERRAIN, "block_move") then
if game.level.map:isBound(coord[1], coord[2]) and (i ~= 0 or j ~= 0) and not game.level.map:checkEntity(coord[1], coord[2], engine.Map.TERRAIN, "block_move") and not game.level.map:checkEntity(coord[1], coord[2], engine.Map.TERRAIN, "change_level") and not game.level.map:checkEntity(coord[1], coord[2], engine.Map.TERRAIN, "special") then
game.zone:addEntity(level, l, "terrain", coord[1], coord[2])
return
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment