From 1c7c54e8102f1f449ffe7dfaa3a041915079d290 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 May 2014 23:09:44 +0300 Subject: fix code style. --- src/actormanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/actormanager.cpp') diff --git a/src/actormanager.cpp b/src/actormanager.cpp index f8d4e137e..265c60e17 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -1038,7 +1038,8 @@ Being *ActorManager::findNearestLivingBeing(const Being *const aroundBeing, const bool valid = validateBeing(aroundBeing, being, type, excluded, 50); int d = being->getDistance(); - if (being->getType() != ActorType::MONSTER || !mTargetOnlyReachable) + if (being->getType() != ActorType::MONSTER + || !mTargetOnlyReachable) { // if distance not calculated, use old distance d = (being->getTileX() - x) * (being->getTileX() - x) + (being->getTileY() - y) * (being->getTileY() - y); -- cgit v1.2.3-70-g09d2