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

plop

parent 7666126d
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -74,7 +74,7 @@ function _M:getSpawnSpot(m)
_, _, gs = util.findFreeGrid(spot.x, spot.y, self.spot_radius, "block_move", {[Map.ACTOR]=true})
tries = tries + 1
end
if not gs then
if not gs or #gs == 0 then
print("No more free space for spawning")
break
end
......
......@@ -55,7 +55,7 @@ function _M:getSpawnSpot(o)
_, _, gs = util.findFreeGrid(spot.x, spot.y, self.spot_radius, "block_move", {[Map.OBJECT]=true})
tries = tries + 1
end
if not gs then
if not gs or #gs == 0 then
print("No more free space for spawning")
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