diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-27 01:34:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-27 01:34:49 +0300 |
commit | 68a7dd225969fcdfb9c07b99db43756a2b1dec7c (patch) | |
tree | 644c14f9b178a968a53e742fb5f37aaf29fc062d /src/gui/windows/chatwindow.cpp | |
parent | d3f3ec92d583fcaecccb500c8940f33d7228ff89 (diff) | |
download | manaverse-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.tar.gz manaverse-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.tar.bz2 manaverse-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.tar.xz manaverse-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.zip |
Change attributes value type to int64.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 9728fe52f..091548381 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1023,8 +1023,8 @@ void ChatWindow::statChanged(const AttributesT id, } void ChatWindow::attributeChanged(const AttributesT id, - const int oldVal, - const int newVal) + const int64_t oldVal, + const int64_t newVal) { if (!mShowBattleEvents) return; @@ -1036,17 +1036,19 @@ void ChatWindow::attributeChanged(const AttributesT id, { if (oldVal > newVal) break; - const int change = newVal - oldVal; + const int64_t change = newVal - oldVal; if (change != 0) { battleChatLog(std::string("+").append(toString( - change)).append(" xp"), + CAST_U64(change))).append(" xp"), ChatMsgType::BY_SERVER); } break; } case Attributes::PLAYER_LEVEL: - battleChatLog(std::string("Level: ").append(toString(newVal)), + battleChatLog(std::string( + "Level: ").append(toString(CAST_S32( + newVal))), ChatMsgType::BY_SERVER); break; default: |