summaryrefslogtreecommitdiff
path: root/src/gui/windows/registerdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 20:45:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 20:45:24 +0300
commite873e33f470ef65375a64652bc4d4dbbb0297172 (patch)
tree8dbf9dbb52ceebf3739c08516e8a0789f909c6a4 /src/gui/windows/registerdialog.cpp
parent2ff3df08fa993d1bf1f00f47f7cbad7b60ce3ce3 (diff)
downloadmanaverse-e873e33f470ef65375a64652bc4d4dbbb0297172.tar.gz
manaverse-e873e33f470ef65375a64652bc4d4dbbb0297172.tar.bz2
manaverse-e873e33f470ef65375a64652bc4d4dbbb0297172.tar.xz
manaverse-e873e33f470ef65375a64652bc4d4dbbb0297172.zip
Add server feature haveOtherGender.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r--src/gui/windows/registerdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index 6ac30634b..7253c3630 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -45,6 +45,7 @@
#include "net/loginhandler.h"
#include "net/net.h"
#include "net/registrationoptions.h"
+#include "net/serverfeatures.h"
#include "utils/delete2.h"
#include "utils/gettext.h"
@@ -100,7 +101,7 @@ RegisterDialog::RegisterDialog(LoginData *const data) :
mMaleButton = new RadioButton(this, _("Male"), "sex", true);
// TRANSLATORS: register dialog. button.
mFemaleButton = new RadioButton(this, _("Female"), "sex", false);
- if (serverVersion >= 5)
+ if (Net::getServerFeatures()->haveOtherGender())
{
// TRANSLATORS: register dialog. button.
mOtherButton = new RadioButton(this, _("Other"), "sex", false);