summaryrefslogtreecommitdiff
path: root/src/being/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 19:17:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 19:17:59 +0300
commit1a9f3cc7de6e7e304290d2979eefbf9b0239a968 (patch)
treea583bdcac59f4dcf882d435c58928344c0b9c352 /src/being/localplayer.h
parentb19a1c6d50c2c0f4233972f20c9354efca5ccb66 (diff)
downloadplus-1a9f3cc7de6e7e304290d2979eefbf9b0239a968.tar.gz
plus-1a9f3cc7de6e7e304290d2979eefbf9b0239a968.tar.bz2
plus-1a9f3cc7de6e7e304290d2979eefbf9b0239a968.tar.xz
plus-1a9f3cc7de6e7e304290d2979eefbf9b0239a968.zip
Replace most getters callc getTileX/getTileY to direct variables usage.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r--src/being/localplayer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index b062cd6c2..7244664fb 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -391,10 +391,10 @@ class LocalPlayer final : public Being,
const bool updateHash = true);
int getLastAttackX() const override final
- { return mTarget ? mTarget->getTileX() : mLastAttackX; }
+ { return mTarget ? mTarget->mX : mLastAttackX; }
int getLastAttackY() const override final
- { return mTarget ? mTarget->getTileY() : mLastAttackY; }
+ { return mTarget ? mTarget->mY : mLastAttackY; }
void attributeChanged(const AttributesT id,
const int oldVal,