diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-12 14:53:32 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-12 14:58:48 +0200 |
commit | 92a8e0403595cd0f4b8b2084c45ec79edca7e7c1 (patch) | |
tree | d1d4b2b6638935f666c6512b467a6ffc3017fb60 /src/gui/register.cpp | |
parent | 14a6e6a4bc5d39ddf8f31efc07a5e2493a6f6d0a (diff) | |
download | mana-92a8e0403595cd0f4b8b2084c45ec79edca7e7c1.tar.gz mana-92a8e0403595cd0f4b8b2084c45ec79edca7e7c1.tar.bz2 mana-92a8e0403595cd0f4b8b2084c45ec79edca7e7c1.tar.xz mana-92a8e0403595cd0f4b8b2084c45ec79edca7e7c1.zip |
Append _F or _M to username in eAthena network layer
Abstracts it away and out of main.cpp and register.cpp.
Diffstat (limited to 'src/gui/register.cpp')
-rw-r--r-- | src/gui/register.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/register.cpp b/src/gui/register.cpp index 8442c3ea..04da656b 100644 --- a/src/gui/register.cpp +++ b/src/gui/register.cpp @@ -232,7 +232,8 @@ void RegisterDialog::action(const gcn::ActionEvent &event) #ifdef EATHENA_SUPPORT mLoginData->hostname = mServerField->getText(); mLoginData->port = getUShort(mPortField->getText()); - mLoginData->username += mFemaleButton->isSelected() ? "_F" : "_M"; + mLoginData->sex = + mFemaleButton->isSelected() ? GENDER_FEMALE : GENDER_MALE; #else mLoginData->email = mEmailField->getText(); #endif |