From e26c01fe66bc698555fdee9d681b3abd6822848a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 Aug 2017 00:17:03 +0300 Subject: Remove some parentheses. --- src/actormanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/actormanager.cpp') diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 2649cb230..fd24147e9 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -95,11 +95,11 @@ class FindBeingFunctor final 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 && + return CAST_U32(pos.x) / mapTileSize == x && (CAST_U32(pos.y) / mapTileSize == y || CAST_U32(pos.y) / mapTileSize == other_y) && b->isAlive() && (type == ActorType::Unknown - || b->getType() == type)); + || b->getType() == type); } uint16_t x, y; @@ -189,7 +189,7 @@ class SortBeingFunctor final return w1 < w2; } - return (being1->getName() < being2->getName()); + return being1->getName() < being2->getName(); } StringIntMap *attackBeings; StringIntMap *priorityBeings; -- cgit v1.2.3-60-g2f50