diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-15 18:37:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-15 18:37:00 +0300 |
commit | 65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635 (patch) | |
tree | 493d6441dd152419908d28178c26112a4639e89f /src/localplayer.cpp | |
parent | e1e411459e9c9aae819eee474d48d0cc20f6ca07 (diff) | |
download | manaplus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.tar.gz manaplus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.tar.bz2 manaplus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.tar.xz manaplus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.zip |
Fix code style.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index f204164ee..e4de6ad1e 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -184,8 +184,9 @@ LocalPlayer::LocalPlayer(int id, int subtype): mWaitPing = false; mPingTime = 0; - PlayerInfo::setStatBase(WALK_SPEED, static_cast<int>(getWalkSpeed().x)); - PlayerInfo::setStatMod(WALK_SPEED, 0); + PlayerInfo::setStatBase(PlayerInfo::WALK_SPEED, + static_cast<int>(getWalkSpeed().x)); + PlayerInfo::setStatMod(PlayerInfo::WALK_SPEED, 0); loadHomes(); @@ -1672,19 +1673,19 @@ void LocalPlayer::processEvent(Channels channel, { switch (event.getInt("id")) { - case EXP: + case PlayerInfo::EXP: { if (event.getInt("oldValue") > event.getInt("newValue")) break; int change = event.getInt("newValue") - - event.getInt("oldValue"); + - event.getInt("oldValue"); if (change != 0) addMessageToQueue(strprintf("%d %s", change, _("xp"))); break; } - case LEVEL: + case PlayerInfo::LEVEL: mLevel = event.getInt("newValue"); break; default: @@ -3257,7 +3258,7 @@ void LocalPlayer::tryMagic(std::string spell, int baseMagic, if (PlayerInfo::getStatEffective(340) >= baseMagic && PlayerInfo::getStatEffective(342) >= schoolMagic) { - if (PlayerInfo::getAttribute(MP) >= mana) + if (PlayerInfo::getAttribute(PlayerInfo::MP) >= mana) { if (!Client::limitPackets(PACKET_CHAT)) return; @@ -4098,7 +4099,7 @@ int LocalPlayer::getTargetTime() int LocalPlayer::getLevel() const { - return PlayerInfo::getAttribute(LEVEL); + return PlayerInfo::getAttribute(PlayerInfo::LEVEL); } void LocalPlayer::updateNavigateList() |