mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
paths are now in center of tiles instead of at top-left corner
This commit is contained in:
@@ -84,7 +84,7 @@ class IMICRTS
|
||||
|
||||
def at_current_path_node?(entity)
|
||||
if node = path_current_node
|
||||
entity.position.distance(node.tile.position) <= @entity.radius
|
||||
entity.position.distance((node.tile.position + @map.tile_size / 2).xy) <= @entity.radius
|
||||
else
|
||||
true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user