summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
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/being/being.cpp
parent692331fcf7c07ce75a9053ef3fcc2a7597c0d007 (diff)
downloadplus-f69cfac2c28cc01b5b19266af13b30905ef511d1.tar.gz
plus-f69cfac2c28cc01b5b19266af13b30905ef511d1.tar.bz2
plus-f69cfac2c28cc01b5b19266af13b30905ef511d1.tar.xz
plus-f69cfac2c28cc01b5b19266af13b30905ef511d1.zip
Fix style error.
Diffstat (limited to 'src/being/being.cpp')
-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