summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-18 23:07:40 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-18 23:07:40 +0300
commitdc6568962a32ddb6f231c629e7ad3373e9086b6c (patch)
tree744e9f2507c6113e1ba941a11b16e4923aa00858 /src/actorspritemanager.cpp
parent6419386c4c382753509425826ee609dd07d4ae72 (diff)
downloadplus-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.gz
plus-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.bz2
plus-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.xz
plus-dc6568962a32ddb6f231c629e7ad3373e9086b6c.zip
remove useless conditions.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 3c23bccbe..597355af5 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -1050,12 +1050,12 @@ Being *ActorSpriteManager::findNearestLivingBeing(const Being *const
// logger->log("index:" + toString(index));
// logger->log("d:" + toString(d));
- if (valid && !filtered && (d <= dist || !closestBeing))
+ if (!filtered && (d <= dist || !closestBeing))
{
dist = d;
closestBeing = being;
}
- else if (valid && filtered)
+ else if (filtered)
{
int w2 = defaultPriorityIndex;
if (closestBeing)