Skip to content
Snippets Groups Projects
Commit e73902b2 authored by Eric Wykoff's avatar Eric Wykoff
Browse files

sanity check

parent 9b0ca6a0
No related branches found
No related tags found
No related merge requests found
......@@ -1456,6 +1456,7 @@ function _M:teleportRandom(x, y, dist, min_dist)
if dist == 0 then
x, y = util.findFreeGrid(x, y, 5, true, {[Map.ACTOR]=true})
end
if not x or not y then return end
-- Store our old x, y to pass to our callback
local ox, oy = self.x, self.y
......
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