summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 472836140..7bf72b26f 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1578,8 +1578,10 @@ void Being::logic()
if (mAction == BeingAction::MOVE || mNeedPosUpdate)
{
- const int xOffset = getXOffset();
- const int yOffset = getYOffset();
+ const int xOffset = getOffset(
+ BeingDirection::LEFT, BeingDirection::RIGHT);
+ const int yOffset = getOffset(
+ BeingDirection::UP, BeingDirection::DOWN);
int offset = xOffset;
if (!offset)
offset = yOffset;