diff options
author | Roderic Morris <roderic@ccs.neu.edu> | 2009-07-02 20:51:41 -0400 |
---|---|---|
committer | Roderic Morris <roderic@ccs.neu.edu> | 2009-07-02 20:51:41 -0400 |
commit | e0de8a124bf94b79d9d64e5406b21e8598a05d56 (patch) | |
tree | 45b24bbe874ce9edb364dda3a188a5e539356fe2 /src/player.cpp | |
parent | 0bca1b9756a93d876cbf4a411b47634b87775162 (diff) | |
download | mana-e0de8a124bf94b79d9d64e5406b21e8598a05d56.tar.gz mana-e0de8a124bf94b79d9d64e5406b21e8598a05d56.tar.bz2 mana-e0de8a124bf94b79d9d64e5406b21e8598a05d56.tar.xz mana-e0de8a124bf94b79d9d64e5406b21e8598a05d56.zip |
Fix building the ea client.
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/player.cpp b/src/player.cpp index 597fb14b..3b2271bd 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -149,20 +149,6 @@ void Player::logic() } #endif -Path Player::findPath() -{ - Path path; - - if (mMap) - { - path = mMap->findSimplePath(getPosition().x / 32, getPosition().y / 32, - getDestination().x / 32, getDestination().y / 32, - getWalkMask()); - } - - return path; -} - Being::Type Player::getType() const { return PLAYER; @@ -270,6 +256,20 @@ void Player::updateCoords() #ifdef TMWSERV_SUPPORT +Path Player::findPath() +{ + Path path; + + if (mMap) + { + path = mMap->findSimplePath(getPosition().x / 32, getPosition().y / 32, + getDestination().x / 32, getDestination().y / 32, + getWalkMask()); + } + + return path; +} + Guild* Player::addGuild(short guildId, short rights) { Guild *guild = new Guild(guildId, rights); |