summaryrefslogtreecommitdiff
path: root/src/main.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/main.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/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e587e28e..b1d00ce4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1043,6 +1043,7 @@ int main(int argc, char *argv[])
if (worlds.size() == 0)
{
+ // Trust that the netcode knows what it's doing
state = STATE_UPDATE;
}
else if (worlds.size() == 1)
@@ -1058,14 +1059,13 @@ int main(int argc, char *argv[])
((WorldSelectDialog*) currentDialog)->action(
gcn::ActionEvent(NULL, "ok"));
}
-
- state = STATE_WORLD_SELECT_ATTEMPT;
}
}
break;
case STATE_WORLD_SELECT_ATTEMPT:
- // TODO
+ logger->log("State: Attempting world selection");
+ currentDialog = new ConnectionDialog(STATE_WORLD_SELECT);
break;
case STATE_LOGIN_ERROR: