summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 22:50:50 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 22:50:50 +0300
commitf69cfac2c28cc01b5b19266af13b30905ef511d1 (patch)
tree89269ae85da961224e189fdd337ab578b629e02a /src
parent692331fcf7c07ce75a9053ef3fcc2a7597c0d007 (diff)
downloadmanaplus-f69cfac2c28cc01b5b19266af13b30905ef511d1.tar.gz
manaplus-f69cfac2c28cc01b5b19266af13b30905ef511d1.tar.bz2
manaplus-f69cfac2c28cc01b5b19266af13b30905ef511d1.tar.xz
manaplus-f69cfac2c28cc01b5b19266af13b30905ef511d1.zip
Fix style error.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index c7fe60b07..0be04ac0b 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2170,10 +2170,10 @@ int Being::getOffset(const signed char pos,
if (mMap)
{
const int time = get_elapsed_time(mActionTime);
- offset = (pos == BeingDirection::LEFT
- && neg == BeingDirection::RIGHT) ?
- (time * mMap->getTileWidth() / mSpeed) :
- (time * mMap->getTileHeight() / mSpeed);
+ offset = (pos == BeingDirection::LEFT &&
+ neg == BeingDirection::RIGHT) ?
+ (time * mMap->getTileWidth() / mSpeed)
+ : (time * mMap->getTileHeight() / mSpeed);
}
// We calculate the offset _from_ the _target_ location