From 415d696feaa2981d555d1912f201b548c1f0ffad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 18:05:48 +0300 Subject: Add server feature haveLookSelection. --- src/gui/windows/charcreatedialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 650f58459..2d1161d1d 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -199,7 +199,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, mRaceLabel = new Label(this, _("Race:")); mRaceNameLabel = new Label(this, ""); } - if (serverVersion >= 9 && mMinLook < mMaxLook) + if (Net::getServerFeatures()->haveLookSelection() && mMinLook < mMaxLook) { // TRANSLATORS: char create dialog button mNextLookButton = new Button(this, _(">"), "nextlook", this); @@ -255,7 +255,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, mHairStyleLabel->setPosition(labelX, y); mHairStyleNameLabel->setPosition(nameX, y); - if (serverVersion >= 9 && mMinLook < mMaxLook) + if (Net::getServerFeatures()->haveLookSelection() && mMinLook < mMaxLook) { y += 24; mPrevLookButton->setPosition(leftX, y); @@ -295,7 +295,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, add(mActionButton); add(mRotateButton); - if (serverVersion >= 9 && mMinLook < mMaxLook) + if (Net::getServerFeatures()->haveLookSelection() && mMinLook < mMaxLook) { add(mNextLookButton); add(mPrevLookButton); @@ -326,7 +326,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, updateHair(); if (Net::getServerFeatures()->haveRaceSelection()) updateRace(); - if (serverVersion >= 9 && mMinLook < mMaxLook) + if (Net::getServerFeatures()->haveLookSelection() && mMinLook < mMaxLook) updateLook(); updatePlayer(); @@ -640,7 +640,7 @@ void CharCreateDialog::updateLook() { const ItemInfo &item = ItemDB::get(-100 - mRace); const int sz = item.getColorsSize(); - if (sz > 0 && serverVersion >= 9) + if (sz > 0 && Net::getServerFeatures()->haveLookSelection()) { if (mLook < 0) mLook = sz - 1; -- cgit v1.2.3-70-g09d2