summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
commit88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (patch)
treeb35a28cd317e2895c063749180b98edfe223c032 /src/gui/windows/charselectdialog.cpp
parentc24fefa91a1416a4dad7fd97d67cefa51f9eb97c (diff)
downloadmv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.gz
mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.bz2
mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.xz
mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.zip
Fix code style in gui.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 887937232..4754d01e5 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -256,12 +256,18 @@ void CharSelectDialog::action(const ActionEvent &event)
// TRANSLATORS: char select dialog. player info message.
_("Hp: %u/%u\nMp: %u/%u\nLevel: %u\n"
"Experience: %u\nMoney: %s"),
- character->data.mAttributes[PlayerInfo::HP],
- character->data.mAttributes[PlayerInfo::MAX_HP],
- character->data.mAttributes[PlayerInfo::MP],
- character->data.mAttributes[PlayerInfo::MAX_MP],
- character->data.mAttributes[PlayerInfo::LEVEL],
- character->data.mAttributes[PlayerInfo::EXP],
+ static_cast<uint32_t>(
+ character->data.mAttributes[PlayerInfo::HP]),
+ static_cast<uint32_t>(
+ character->data.mAttributes[PlayerInfo::MAX_HP]),
+ static_cast<uint32_t>(
+ character->data.mAttributes[PlayerInfo::MP]),
+ static_cast<uint32_t>(
+ character->data.mAttributes[PlayerInfo::MAX_MP]),
+ static_cast<uint32_t>(
+ character->data.mAttributes[PlayerInfo::LEVEL]),
+ static_cast<uint32_t>(
+ character->data.mAttributes[PlayerInfo::EXP]),
Units::formatCurrency(
character->data.mAttributes[PlayerInfo::MONEY]).c_str());
new OkDialog(data->getName(), msg, DIALOG_SILENCE);