From 3f43bdd12b50a2ff3afb687fd3d2101865e946f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 Mar 2016 03:23:24 +0300 Subject: Use in most places int being positions and not float. --- src/actormanager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/actormanager.cpp') diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 3769eceee..471d8d72e 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -87,6 +87,8 @@ class FindBeingFunctor final const unsigned other_y = y + ((b->getType() == ActorType::Npc) ? 1 : 0); const Vector &pos = b->getPixelPositionF(); + // +++ probably here need use int positions and not float? + // but for now correct int positions only in Being return (CAST_U32(pos.x) / mapTileSize == x && (CAST_U32(pos.y) / mapTileSize == y || CAST_U32(pos.y) / mapTileSize == other_y) && -- cgit v1.2.3-60-g2f50