summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-03 19:56:56 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-03 19:56:56 -0600
commit24b0725a57c7821561e4e1e28b2da407335d517c (patch)
treeef5267c9c951b10bd1f7993b8527efba697b2d59 /src
parent273bd48ce28ab114fc5a840eff4c3baf448b829d (diff)
downloadmana-24b0725a57c7821561e4e1e28b2da407335d517c.tar.gz
mana-24b0725a57c7821561e4e1e28b2da407335d517c.tar.bz2
mana-24b0725a57c7821561e4e1e28b2da407335d517c.tar.xz
mana-24b0725a57c7821561e4e1e28b2da407335d517c.zip
Fix connecting to servers when selected in the GUI
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 90e31f5a..e587e28e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -908,6 +908,10 @@ int main(int argc, char *argv[])
state = STATE_GAME;
}
+ else if (state == STATE_CONNECT_SERVER && oldstate == STATE_CHOOSE_SERVER)
+ {
+ Net::connectToServer(currentServer);
+ }
else if (state == STATE_CONNECT_SERVER &&
oldstate != STATE_CHOOSE_SERVER &&
Net::getLoginHandler()->isConnected())
@@ -955,8 +959,6 @@ int main(int argc, char *argv[])
} else {
state = STATE_CONNECT_SERVER;
- Net::connectToServer(currentServer);
-
// Reset options so that cancelling or connect
// timeout will show the server dialog.
options.serverName.clear();