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

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@1142 51575b47-30f0-44d4-a5cc-537603b46e54
parent 33c0b077
No related branches found
No related tags found
No related merge requests found
......@@ -589,13 +589,16 @@ end
-- @param x position
-- @param y position
-- @param what property to check
-- @return a table containing all return values, indexed by the entities
function _M:checkAllEntitiesNoStop(x, y, what, ...)
if x < 0 or x >= self.w or y < 0 or y >= self.h then return end
if x < 0 or x >= self.w or y < 0 or y >= self.h then return {} end
local ret = {}
if self.map[x + y * self.w] then
for _, e in pairs(self.map[x + y * self.w]) do
e:check(what, x, y, ...)
ret[e] = e:check(what, x, y, ...)
end
end
return ret
end
--- Check specified entity position of the grid for a property
......
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