Skip to content
Snippets Groups Projects
Commit 03a41377 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3754 51575b47-30f0-44d4-a5cc-537603b46e54
parent 63130fa0
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ function _M:place(m, entry, elite)
local place = rng.range(1, entry.max)
local x, y = entry[place]()
local tries = 0
while (not m:canMove(x, y)) and tries < entry.max + 2 do
while (not m:canMove(x, y) or game.level.map(x, y, Map.ACTOR)) and tries < entry.max + 2 do
x, y = entry[place]()
place = rng.range(1, entry.max)
tries = tries + 1
......
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