diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-27 13:25:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-27 13:25:41 +0300 |
commit | c61f1b6abe8e68995f00ae3a939afe5049e5cdb3 (patch) | |
tree | c50613a2c7722fba4aba9d5a67949b118a279b33 /src/gui/windows/charcreatedialog.cpp | |
parent | b481cd74dfd1629ca7b045cde57562e752c49638 (diff) | |
download | mv-c61f1b6abe8e68995f00ae3a939afe5049e5cdb3.tar.gz mv-c61f1b6abe8e68995f00ae3a939afe5049e5cdb3.tar.bz2 mv-c61f1b6abe8e68995f00ae3a939afe5049e5cdb3.tar.xz mv-c61f1b6abe8e68995f00ae3a939afe5049e5cdb3.zip |
Remove manaserv ifdefs code.
ManaServ was already depricated long ago.
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 4f98cb931..a877f45e0 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -325,11 +325,7 @@ void CharCreateDialog::action(const ActionEvent &event) const std::string id = event.getId(); if (id == "create") { - if ( -#ifdef MANASERV_SUPPORT - Net::getNetworkType() == ServerInfo::MANASERV || -#endif - getName().length() >= 4) + if (getName().length() >= 4) { // Attempt to create the character mCreateButton->setEnabled(false); @@ -341,14 +337,7 @@ void CharCreateDialog::action(const ActionEvent &event) mAttributeSlider[i]->getValue())); } -#ifdef MANASERV_SUPPORT - int characterSlot = mSlot; - // On Manaserv, the slots start at 1, so we offset them. - if (Net::getNetworkType() == ServerInfo::MANASERV) - ++characterSlot; -#else const int characterSlot = mSlot; -#endif Net::getCharServerHandler()->newCharacter(getName(), characterSlot, mFemale->isSelected(), mHairStyle, mHairColor, |