summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-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