Skip to content
Snippets Groups Projects
Commit 209e45b2 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4925 51575b47-30f0-44d4-a5cc-537603b46e54
parent b276800e
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ end
function _M:liveOrDie(x, y)
local nb = 0
for _, coord in pairs(util.adjacentCoords(x, y)) if self.map:isBound(coord[1], coord[2]) then
for _, coord in pairs(util.adjacentCoords(x, y)) do if self.map:isBound(coord[1], coord[2]) then
local g = self.map(coord[1], coord[2], Map.TERRAIN)
if g and g == self.wall then nb = nb + 1 end
end 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