summaryrefslogtreecommitdiff
path: root/src/setup/multiplayer.c
diff options
context:
space:
mode:
authorSimon Howard2011-09-20 20:48:09 +0000
committerSimon Howard2011-09-20 20:48:09 +0000
commitb8d2d8bb8b3cf1b5475e8c9be292248f140b2126 (patch)
treeef75665f65c1124eac8169f6e5583b8010fbe933 /src/setup/multiplayer.c
parent4fba2ab2ddda75a05c70ac95531504edfafdf8c8 (diff)
downloadchocolate-doom-b8d2d8bb8b3cf1b5475e8c9be292248f140b2126.tar.gz
chocolate-doom-b8d2d8bb8b3cf1b5475e8c9be292248f140b2126.tar.bz2
chocolate-doom-b8d2d8bb8b3cf1b5475e8c9be292248f140b2126.zip
Display a warning message when trying to join a server playing a game
that we don't have the IWAD for. Subversion-branch: /branches/v2-branch Subversion-revision: 2389
Diffstat (limited to 'src/setup/multiplayer.c')
-rw-r--r--src/setup/multiplayer.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c
index 91335c6c..5b3e8da0 100644
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -783,8 +783,7 @@ static void SelectQueryAddress(TXT_UNCAST_ARG(button),
// Auto-choose IWAD if there is already a player connected.
- if (querydata->num_players > 0
- && !(querydata->gamemission == doom && querydata->gamemode == shareware))
+ if (querydata->num_players > 0)
{
for (i = 0; found_iwads[i] != NULL; ++i)
{
@@ -795,6 +794,22 @@ static void SelectQueryAddress(TXT_UNCAST_ARG(button),
break;
}
}
+
+ if (found_iwads[i] == NULL)
+ {
+ TXT_MessageBox(NULL,
+ "The game on this server seems to be:\n"
+ "\n"
+ " %s\n"
+ "\n"
+ "but the IWAD file %s is not found!\n"
+ "Without the required IWAD file, it may not be\n"
+ "possible to join this game.",
+ D_SuggestGameName(querydata->gamemission,
+ querydata->gamemode),
+ D_SuggestIWADName(querydata->gamemission,
+ querydata->gamemode));
+ }
}
// Finished with search.