From b8d2d8bb8b3cf1b5475e8c9be292248f140b2126 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 20 Sep 2011 20:48:09 +0000 Subject: 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 --- src/setup/multiplayer.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/setup/multiplayer.c') 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. -- cgit v1.2.3