diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 17:55:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 17:55:30 +0300 |
commit | 7931a86899d1c4e93fcde4ed753f8a62f52575fe (patch) | |
tree | 0a81126d55b792a2eab83fd8d15077f6882991cf /src/gui | |
parent | c79a9b4ffa2762be199b85a78cd798d4bccc9b1b (diff) | |
download | manaplus-7931a86899d1c4e93fcde4ed753f8a62f52575fe.tar.gz manaplus-7931a86899d1c4e93fcde4ed753f8a62f52575fe.tar.bz2 manaplus-7931a86899d1c4e93fcde4ed753f8a62f52575fe.tar.xz manaplus-7931a86899d1c4e93fcde4ed753f8a62f52575fe.zip |
Add server feature haveRaceSelection.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 49eacd93e..650f58459 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -41,6 +41,7 @@ #include "gui/widgets/textfield.h" #include "net/net.h" +#include "net/serverfeatures.h" #include "resources/iteminfo.h" @@ -188,7 +189,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, mNameField->setMaximum(24); - if (serverVersion >= 2) + if (Net::getServerFeatures()->haveRaceSelection()) { // TRANSLATORS: char create dialog button mNextRaceButton = new Button(this, _(">"), "nextrace", this); @@ -263,7 +264,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, mLookLabel->setPosition(labelX, y); mLookNameLabel->setPosition(nameX, y); // 93 } - if (serverVersion >= 2) + if (Net::getServerFeatures()->haveRaceSelection()) { y += 24; mPrevRaceButton->setPosition(leftX, y); @@ -302,7 +303,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, add(mLookNameLabel); } - if (serverVersion >= 2) + if (Net::getServerFeatures()->haveRaceSelection()) { add(mNextRaceButton); add(mPrevRaceButton); @@ -323,7 +324,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, mNameField->requestFocus(); updateHair(); - if (serverVersion >= 2) + if (Net::getServerFeatures()->haveRaceSelection()) updateRace(); if (serverVersion >= 9 && mMinLook < mMaxLook) updateLook(); |