Commit 7960654f1a4f443553a9381e2d598169a57102fe
1 parent
25096b45
Fixed a very rare issue in Reknor that could prevent the stairs to level 2 from appearing
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -86,7 +86,7 @@ return { |
86 | 86 | local l = game.zone:makeEntityByName(level, "terrain", "IRON_THRONE_EDICT") |
87 | 87 | if not l then return end |
88 | 88 | for _, coord in pairs(util.adjacentCoords(level.default_up.x, level.default_up.y)) do |
89 | - 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 | |
89 | + 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 | |
90 | 90 | game.zone:addEntity(level, l, "terrain", coord[1], coord[2]) |
91 | 91 | return |
92 | 92 | end | ... | ... |
-
Please register or login to post a comment