From c9795055ee1b6079ef9b0c0e3faf4bb79704bd98 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jul 2016 02:30:47 +0300 Subject: Add into player attributes prefix PLAYER_. --- src/gui/windows/chatwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/chatwindow.cpp') 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 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; -- cgit v1.2.3-60-g2f50