summaryrefslogtreecommitdiff
path: root/src/gui/char_select.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-03-22 23:10:27 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-03-22 23:10:27 +0000
commit346bb6d670d630d65f8c35125831c75d031aac7f (patch)
treec79877ea0d6b46ae748bf4a6d6d3969dc483f0a4 /src/gui/char_select.cpp
parent6f9a2e74958d794fb049253833b98982e915df45 (diff)
downloadMana-346bb6d670d630d65f8c35125831c75d031aac7f.tar.gz
Mana-346bb6d670d630d65f8c35125831c75d031aac7f.tar.bz2
Mana-346bb6d670d630d65f8c35125831c75d031aac7f.tar.xz
Mana-346bb6d670d630d65f8c35125831c75d031aac7f.zip
Redesigned the localplayer class to use getters and setters instead of direct access to the member variables. Implemented communication of attributes between server and client.
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r--src/gui/char_select.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp
index bd348c88..09ce5b87 100644
--- a/src/gui/char_select.cpp
+++ b/src/gui/char_select.cpp
@@ -194,8 +194,8 @@ void CharSelectDialog::updatePlayerInfo()
if (pi)
{
mNameLabel->setCaption(pi->getName());
- mLevelLabel->setCaption("Lvl: " + toString(pi->mLevel));
- mMoneyLabel->setCaption("Money: " + toString(pi->mMoney));
+ mLevelLabel->setCaption("Lvl: " + toString(pi->getLevel()));
+ mMoneyLabel->setCaption("Money: " + toString(pi->getMoney()));
if (!mCharSelected)
{
mNewCharButton->setEnabled(false);