summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/being/being.cpp6
-rw-r--r--src/being/being.h15
2 files changed, 4 insertions, 17 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;
diff --git a/src/being/being.h b/src/being/being.h
index 9f9f3992d..42fd65b86 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -136,25 +136,10 @@ class Being notfinal : public ActorSprite,
/**
* Makes this being take the next tile of its path.
- * TODO: Used by eAthena only?
*/
virtual void nextTile();
/**
- * Get the current X pixel offset.
- * TODO: Used by eAthena only?
- */
- int getXOffset() const A_WARN_UNUSED
- { return getOffset(BeingDirection::LEFT, BeingDirection::RIGHT); }
-
- /**
- * Get the current Y pixel offset.
- * TODO: Used by eAthena only?
- */
- int getYOffset() const A_WARN_UNUSED
- { return getOffset(BeingDirection::UP, BeingDirection::DOWN); }
-
- /**
* Creates a path for the being from current position to ex and ey
*/
void setDestination(const int dstX, const int dstY);