From 1307b14ff24f3935fa58aef405ffb246c0741336 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 00:49:45 +0300 Subject: Remove getter for charServerHandler. --- src/gui/windows/charcreatedialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/windows/charcreatedialog.cpp') diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 7454eee73..1ee09a5d8 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -335,8 +335,8 @@ CharCreateDialog::~CharCreateDialog() { delete2(mPlayer); - if (Net::getCharServerHandler()) - Net::getCharServerHandler()->setCharCreateDialog(nullptr); + if (charServerHandler) + charServerHandler->setCharCreateDialog(nullptr); } void CharCreateDialog::action(const ActionEvent &event) @@ -358,7 +358,7 @@ void CharCreateDialog::action(const ActionEvent &event) const int characterSlot = mSlot; - Net::getCharServerHandler()->newCharacter(getName(), characterSlot, + charServerHandler->newCharacter(getName(), characterSlot, mFemale->isSelected(), mHairStyle, mHairColor, static_cast(mRace), static_cast(mLook), atts); @@ -620,7 +620,7 @@ void CharCreateDialog::updateHair() mHairColorNameLabel->setCaption(ColorDB::getHairColorName(mHairColor)); mHairColorNameLabel->resizeTo(150, 150); - mPlayer->setSprite(Net::getCharServerHandler()->hairSprite(), + mPlayer->setSprite(charServerHandler->hairSprite(), mHairStyle * -1, item.getDyeColorsString(mHairColor)); } -- cgit v1.2.3-60-g2f50