Skip to content
Snippets Groups Projects
Commit 65a49a0e authored by dg's avatar dg
Browse files

Daikara rift can not spawn on the previous/next level changers

git-svn-id: http://svn.net-core.org/repos/t-engine4@3225 51575b47-30f0-44d4-a5cc-537603b46e54
parent 76a5efcf
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ return {
local g = game.zone:makeEntityByName(game.level, "terrain", "RIFT")
local x, y = rng.range(0, game.level.map.w-1), rng.range(0, game.level.map.h-1)
local tries = 0
while game.level.map:checkEntity(x, y, engine.Map.TERRAIN, "block_move") and tries < 100 do
while (game.level.map:checkEntity(x, y, engine.Map.TERRAIN, "block_move") or game.level.map:checkEntity(x, y, engine.Map.TERRAIN, "change_level")) and tries < 100 do
x, y = rng.range(0, game.level.map.w-1), rng.range(0, game.level.map.h-1)
tries = tries + 1
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