summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 03:23:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 03:23:24 +0300
commit3f43bdd12b50a2ff3afb687fd3d2101865e946f2 (patch)
tree218051a0398f77ea3ca555ba706daea82a32f8e0 /src/actormanager.cpp
parent31782ba3cdeced9baa91739c55e9ae819d70d616 (diff)
downloadmv-3f43bdd12b50a2ff3afb687fd3d2101865e946f2.tar.gz
mv-3f43bdd12b50a2ff3afb687fd3d2101865e946f2.tar.bz2
mv-3f43bdd12b50a2ff3afb687fd3d2101865e946f2.tar.xz
mv-3f43bdd12b50a2ff3afb687fd3d2101865e946f2.zip
Use in most places int being positions and not float.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp2
1 files changed, 2 insertions, 0 deletions
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) &&