diff options
author | Simon Howard | 2011-09-20 22:09:37 +0000 |
---|---|---|
committer | Simon Howard | 2011-09-20 22:09:37 +0000 |
commit | 3745cbe05070a2e303712cee9cd83594d84e71d9 (patch) | |
tree | 602e43c79a1db6360ad53d24cb9ad36fe0bc9013 | |
parent | 98ecb00e9d480d6391417883e6f1f035fd2014b7 (diff) | |
download | chocolate-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.c | 8 |
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); |