diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-17 14:17:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-17 14:17:58 +0300 |
commit | d9838926bee52d1ada15a59dce89d76813533480 (patch) | |
tree | 364caa629951a30b56419a59a3dbc4a68d3b7312 /src/being/being.cpp | |
parent | 53cc3c86f2b5040cec577145feff9db2c93bd268 (diff) | |
download | manaverse-d9838926bee52d1ada15a59dce89d76813533480.tar.gz manaverse-d9838926bee52d1ada15a59dce89d76813533480.tar.bz2 manaverse-d9838926bee52d1ada15a59dce89d76813533480.tar.xz manaverse-d9838926bee52d1ada15a59dce89d76813533480.zip |
Remove some useless methods from being.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 6 |
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; |