ref: 3745cbe05070a2e303712cee9cd83594d84e71d9
parent: 98ecb00e9d480d6391417883e6f1f035fd2014b7
author: Simon Howard <[email protected]>
date: Tue Sep 20 18:09:37 EDT 2011
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
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -776,6 +776,14 @@
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);