diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-09-30 19:54:06 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-09-30 19:54:06 -0600 |
commit | d4f32a38fd498c180d562ced38a9129e0abf2252 (patch) | |
tree | e655b59ff686ad5fe2bdd11d6e072f5c3a4493b7 /src/gui/quitdialog.cpp | |
parent | 6707d108790ab1fe1d4a3ef52d717966990fdf0a (diff) | |
download | mana-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/quitdialog.cpp')
-rw-r--r-- | src/gui/quitdialog.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp index 98657001..b2faa618 100644 --- a/src/gui/quitdialog.cpp +++ b/src/gui/quitdialog.cpp @@ -55,10 +55,11 @@ QuitDialog::QuitDialog(bool* quitGame, QuitDialog** pointerToMe): //All states, when we're not logged in to someone. if (state == STATE_CHOOSE_SERVER || - state == STATE_CONNECT_ACCOUNT || + state == STATE_CONNECT_SERVER || state == STATE_LOGIN || state == STATE_LOGIN_ATTEMPT || - state == STATE_UPDATE) + state == STATE_UPDATE || + state == STATE_LOAD_DATA) { mForceQuit->setSelected(true); add(mForceQuit); @@ -107,6 +108,7 @@ void QuitDialog::action(const gcn::ActionEvent &event) { *mQuitGame = true; } + state = STATE_EXIT; } else if (mSwitchAccountServer->isSelected()) @@ -115,7 +117,8 @@ void QuitDialog::action(const gcn::ActionEvent &event) { *mQuitGame = true; } - state = STATE_SWITCH_ACCOUNTSERVER_ATTEMPT; + + state = STATE_SWITCH_SERVER_ATTEMPT; } else if (mSwitchCharacter->isSelected()) { @@ -123,7 +126,6 @@ void QuitDialog::action(const gcn::ActionEvent &event) state = STATE_SWITCH_CHARACTER; } - } scheduleDelete(); } |