diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-25 02:30:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-25 02:30:47 +0300 |
commit | c9795055ee1b6079ef9b0c0e3faf4bb79704bd98 (patch) | |
tree | 147357b76a80705cf0af7bc1ec69cf417ef94812 /src/gui/windows/chatwindow.cpp | |
parent | 1e5a50f6c67cd20967e139320a6c00f54e15dfe2 (diff) | |
download | mv-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.gz mv-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.bz2 mv-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.xz mv-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.zip |
Add into player attributes prefix PLAYER_.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index d6081f5c6..c9107b151 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -974,7 +974,7 @@ void ChatWindow::statChanged(const AttributesT id, if (!mShowBattleEvents || !config.getBoolValue("showJobExp")) return; - if (id != Attributes::JOB) + if (id != Attributes::PLAYER_JOB) return; const std::pair<int, int> exp = PlayerInfo::getStatExperience(id); @@ -1000,7 +1000,7 @@ void ChatWindow::attributeChanged(const AttributesT id, PRAGMA45(GCC diagnostic ignored "-Wswitch-enum") switch (id) { - case Attributes::EXP: + case Attributes::PLAYER_EXP: { if (oldVal > newVal) break; @@ -1013,7 +1013,7 @@ void ChatWindow::attributeChanged(const AttributesT id, } break; } - case Attributes::LEVEL: + case Attributes::PLAYER_LEVEL: battleChatLog(std::string("Level: ").append(toString(newVal)), ChatMsgType::BY_SERVER); break; |