summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-25 02:30:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-25 02:30:47 +0300
commitc9795055ee1b6079ef9b0c0e3faf4bb79704bd98 (patch)
tree147357b76a80705cf0af7bc1ec69cf417ef94812 /src/gui/windows/charselectdialog.cpp
parent1e5a50f6c67cd20967e139320a6c00f54e15dfe2 (diff)
downloadmanaverse-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.gz
manaverse-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.bz2
manaverse-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.xz
manaverse-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.zip
Add into player attributes prefix PLAYER_.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index c71d0eb52..4f62ac9ba 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -244,17 +244,17 @@ void CharSelectDialog::action(const ActionEvent &event)
_("Hp: %u/%u\nMp: %u/%u\nLevel: %u\n"
"Experience: %u\nMoney: %s"),
CAST_U32(
- character->data.mAttributes[Attributes::HP]),
+ character->data.mAttributes[Attributes::PLAYER_HP]),
CAST_U32(
- character->data.mAttributes[Attributes::MAX_HP]),
+ character->data.mAttributes[Attributes::PLAYER_MAX_HP]),
CAST_U32(
- character->data.mAttributes[Attributes::MP]),
+ character->data.mAttributes[Attributes::PLAYER_MP]),
CAST_U32(
- character->data.mAttributes[Attributes::MAX_MP]),
+ character->data.mAttributes[Attributes::PLAYER_MAX_MP]),
CAST_U32(
- character->data.mAttributes[Attributes::LEVEL]),
+ character->data.mAttributes[Attributes::PLAYER_LEVEL]),
CAST_U32(
- character->data.mAttributes[Attributes::EXP]),
+ character->data.mAttributes[Attributes::PLAYER_EXP]),
Units::formatCurrency(
character->data.mAttributes[Attributes::MONEY]).c_str());
CREATEWIDGET(OkDialog, data->getName(), msg,