diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-27 19:05:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-27 21:01:39 +0300 |
commit | 8150191686759b13a239c25970924c3c186140ff (patch) | |
tree | 6004551128df40dcf178ca639fe42490f80d2c01 /src/gui/charcreatedialog.cpp | |
parent | 18d8872333e2e433ce7b9e7be71706de37933097 (diff) | |
download | plus-8150191686759b13a239c25970924c3c186140ff.tar.gz plus-8150191686759b13a239c25970924c3c186140ff.tar.bz2 plus-8150191686759b13a239c25970924c3c186140ff.tar.xz plus-8150191686759b13a239c25970924c3c186140ff.zip |
improve charserverhandler class.
Diffstat (limited to 'src/gui/charcreatedialog.cpp')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index 7ed2f0703..9ff4b038e 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -252,7 +252,7 @@ CharCreateDialog::~CharCreateDialog() mPlayer = nullptr; // Make sure the char server handler knows that we're gone - Net::getCharHandler()->setCharCreateDialog(nullptr); + Net::getCharServerHandler()->setCharCreateDialog(nullptr); } void CharCreateDialog::action(const gcn::ActionEvent &event) @@ -285,7 +285,7 @@ void CharCreateDialog::action(const gcn::ActionEvent &event) const int characterSlot = mSlot; #endif - Net::getCharHandler()->newCharacter(getName(), characterSlot, + Net::getCharServerHandler()->newCharacter(getName(), characterSlot, mFemale->isSelected(), mHairStyle, mHairColor, static_cast<unsigned char>(mRace), atts); } @@ -524,7 +524,7 @@ void CharCreateDialog::updateHair() mHairColorNameLabel->setCaption(ColorDB::getHairColorName(mHairColor)); mHairColorNameLabel->adjustSize(); - mPlayer->setSprite(Net::getCharHandler()->hairSprite(), + mPlayer->setSprite(Net::getCharServerHandler()->hairSprite(), mHairStyle * -1, item.getDyeColorsString(mHairColor)); } |