diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-08 20:42:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-08 20:42:40 +0300 |
commit | 1fcd75140b847a0e50584fc07fc47d90c9dd9fa8 (patch) | |
tree | 5c1b23c7eabc7d421f46d40ab0bf787ef7dac49b /src/net/tmwa/playerhandler.cpp | |
parent | 53bc0b25c23f8f24d4119ae6fb5ba6ca0a91be19 (diff) | |
download | manaverse-1fcd75140b847a0e50584fc07fc47d90c9dd9fa8.tar.gz manaverse-1fcd75140b847a0e50584fc07fc47d90c9dd9fa8.tar.bz2 manaverse-1fcd75140b847a0e50584fc07fc47d90c9dd9fa8.tar.xz manaverse-1fcd75140b847a0e50584fc07fc47d90c9dd9fa8.zip |
Add small optimisations and fixes.
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 62027cdd4..18bed203f 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -759,22 +759,22 @@ void PlayerHandler::ignoreAll(bool ignore A_UNUSED) // TODO } -bool PlayerHandler::canUseMagic() +bool PlayerHandler::canUseMagic() const { return PlayerInfo::getStatEffective(MATK) > 0; } -bool PlayerHandler::canCorrectAttributes() +bool PlayerHandler::canCorrectAttributes() const { return false; } -int PlayerHandler::getJobLocation() +int PlayerHandler::getJobLocation() const { return JOB; } -Vector PlayerHandler::getDefaultWalkSpeed() +Vector PlayerHandler::getDefaultWalkSpeed() const { // Return an normalized speed for any side // as the offset is calculated elsewhere. |