summaryrefslogtreecommitdiff
path: root/src/net/ea/loginhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-03 23:06:51 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-03 23:06:51 -0600
commit69217e82e8631bbb2183a1322d0985a495c52f5e (patch)
tree60ba8d777ddd9d8121a910e864b8d2434c982347 /src/net/ea/loginhandler.cpp
parent8ef86b6da8e2b5a9c5ff9db6ef22980013e52dd3 (diff)
downloadmana-69217e82e8631bbb2183a1322d0985a495c52f5e.tar.gz
mana-69217e82e8631bbb2183a1322d0985a495c52f5e.tar.bz2
mana-69217e82e8631bbb2183a1322d0985a495c52f5e.tar.xz
mana-69217e82e8631bbb2183a1322d0985a495c52f5e.zip
Polish login procedure and fix some bugs with it
WorldSelectDialog now works correctly. Buttons for several dialogs have more explainatory text and consistant locations.
Diffstat (limited to 'src/net/ea/loginhandler.cpp')
-rw-r--r--src/net/ea/loginhandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index de52bfa3..be547afa 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -116,6 +116,7 @@ void LoginHandler::handleMessage(MessageIn &msg)
msg.skip(30); // unknown
netToken.sex = msg.readInt8() ? GENDER_MALE : GENDER_FEMALE;
+ worlds.clear();
for (int i = 0; i < worldCount; i++)
{
WorldInfo *world = new WorldInfo;
@@ -241,6 +242,8 @@ void LoginHandler::chooseServer(unsigned int server)
charServer.clear();
charServer.hostname = ipToString(worlds[server]->address);
charServer.port = worlds[server]->port;
+
+ state = STATE_UPDATE;
}
void LoginHandler::registerAccount(LoginData *loginData)