summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2011-09-20 22:09:37 +0000
committerSimon Howard2011-09-20 22:09:37 +0000
commit3745cbe05070a2e303712cee9cd83594d84e71d9 (patch)
tree602e43c79a1db6360ad53d24cb9ad36fe0bc9013
parent98ecb00e9d480d6391417883e6f1f035fd2014b7 (diff)
downloadchocolate-doom-3745cbe05070a2e303712cee9cd83594d84e71d9.tar.gz
chocolate-doom-3745cbe05070a2e303712cee9cd83594d84e71d9.tar.bz2
chocolate-doom-3745cbe05070a2e303712cee9cd83594d84e71d9.zip
Display an error dialog if trying to connect to a server where a game is
already in progress. Subversion-branch: /branches/v2-branch Subversion-revision: 2392
-rw-r--r--src/setup/multiplayer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c
index 5b3e8da0..da17ad12 100644
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -776,6 +776,14 @@ static void SelectQueryAddress(TXT_UNCAST_ARG(button),
TXT_CAST_ARG(net_querydata_t, querydata);
int i;
+ if (querydata->server_state != 0)
+ {
+ TXT_MessageBox("Cannot connect to server",
+ "Gameplay is already in progress\n"
+ "on this server.");
+ return;
+ }
+
// Set address to connect to:
free(connect_address);