diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 15:03:23 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 15:03:23 -0700 |
commit | d5ef936bf2d8976a32d01b4e32024c89333ca645 (patch) | |
tree | 3093ae1b7611b8dbad2aba02cba12b9e2da31e36 /src/net/manaserv/generalhandler.cpp | |
parent | c416c51531e37e0be457e47b7c0e52439c543341 (diff) | |
download | Mana-d5ef936bf2d8976a32d01b4e32024c89333ca645.tar.gz Mana-d5ef936bf2d8976a32d01b4e32024c89333ca645.tar.bz2 Mana-d5ef936bf2d8976a32d01b4e32024c89333ca645.tar.xz Mana-d5ef936bf2d8976a32d01b4e32024c89333ca645.zip |
Fix switching characters under ManaServ
Diffstat (limited to 'src/net/manaserv/generalhandler.cpp')
-rw-r--r-- | src/net/manaserv/generalhandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/manaserv/generalhandler.cpp b/src/net/manaserv/generalhandler.cpp index 2f4ad4a0..66929ef6 100644 --- a/src/net/manaserv/generalhandler.cpp +++ b/src/net/manaserv/generalhandler.cpp @@ -57,6 +57,8 @@ Net::GeneralHandler *generalHandler = NULL; +extern ManaServ::LoginHandler *loginHandler; + namespace ManaServ { Connection *accountServerConnection = 0; @@ -146,6 +148,13 @@ void GeneralHandler::unload() void GeneralHandler::flushNetwork() { flush(); + + if (state == STATE_SWITCH_CHARACTER && + Net::getLoginHandler()->isConnected()) + { + loginHandler->reconnect(); + state = STATE_GET_CHARACTERS; + } } bool GeneralHandler::isNetworkConnected() |