Skip to content
Snippets Groups Projects

Target and Projection Update

Merged Hachem_Muche requested to merge Hachem_Muche/t-engine4:Target/ProjectionUpdate into master
2 files
+ 124
51
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -268,7 +268,7 @@ end
function _M:canMove(x, y, terrain_only)
if not game.level.map:isBound(x, y) then return false end
if terrain_only then
return not game.level.map:checkEntity(x, y, Map.TERRAIN, "block_move")
return not game.level.map:checkEntity(x, y, Map.TERRAIN, "block_move", self)
else
return not game.level.map:checkAllEntities(x, y, "block_move", self)
end
Loading