summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-09-30 19:54:06 -0600
committerJared Adams <jaxad0127@gmail.com>2009-09-30 19:54:06 -0600
commitd4f32a38fd498c180d562ced38a9129e0abf2252 (patch)
treee655b59ff686ad5fe2bdd11d6e072f5c3a4493b7 /src/gui/charselectdialog.cpp
parent6707d108790ab1fe1d4a3ef52d717966990fdf0a (diff)
downloadMana-d4f32a38fd498c180d562ced38a9129e0abf2252.tar.gz
Mana-d4f32a38fd498c180d562ced38a9129e0abf2252.tar.bz2
Mana-d4f32a38fd498c180d562ced38a9129e0abf2252.tar.xz
Mana-d4f32a38fd498c180d562ced38a9129e0abf2252.zip
Merge login state machines for both clients
Also do some cleanup and refactoring of related code.
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r--src/gui/charselectdialog.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp
index 69a627e1..be1cd3de 100644
--- a/src/gui/charselectdialog.cpp
+++ b/src/gui/charselectdialog.cpp
@@ -98,9 +98,6 @@ CharSelectDialog::CharSelectDialog(LockedArray<LocalPlayer*> *charInfo,
mCharInfo(charInfo),
mLoginData(loginData),
mCharSelected(false)
-#ifdef EATHENA_SUPPORT
- , mGender(loginData->sex)
-#endif
{
mSelectButton = new Button(_("OK"), "ok", this);
mCancelButton = new Button(_("Cancel"), "cancel", this);
@@ -214,12 +211,8 @@ void CharSelectDialog::action(const gcn::ActionEvent &event)
}
else if (event.getId() == "cancel")
{
-#ifdef TMWSERV_SUPPORT
mCharInfo->clear();
- state = STATE_SWITCH_ACCOUNTSERVER_ATTEMPT;
-#else
- state = STATE_EXIT;
-#endif
+ state = STATE_SWITCH_SERVER_ATTEMPT;
}
#ifdef TMWSERV_SUPPORT
else if (event.getId() == "new")
@@ -250,7 +243,7 @@ void CharSelectDialog::action(const gcn::ActionEvent &event)
{
new CharDeleteConfirm(this);
}
- else if (n_character <= maxSlot)
+ else if (n_character < MAX_CHARACTER_COUNT)
{
// Start new character dialog
CharCreateDialog *charCreateDialog =