From 62a8e9b6c6c2018ccea04ec08275afa6eaffc4ec Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 5 May 2015 22:42:14 -0400 Subject: hexen: Show a startup warning if using v1.0 IWAD. The Hexen v1.0 IWAD file differs too much from the v1.1 IWAD file and can't be reasonably supported by us. Show a warning message on startup if the user appears to be trying to play using the v1.0 IWAD file. This fixes #537. --- src/hexen/h2_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/hexen/h2_main.c') diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c index 01ba726c..77f1bafd 100644 --- a/src/hexen/h2_main.c +++ b/src/hexen/h2_main.c @@ -269,6 +269,17 @@ void D_IdentifyVersion(void) gamemode = shareware; maxplayers = 4; } + + // The v1.0 IWAD file is missing a bunch of lumps. + if (W_CheckNumForName("CLUS1MSG") == -1) + { + printf( + "** WARNING: You are playing with the Hexen v1.0 IWAD. This\n" + "** isn't supported by " PACKAGE_NAME ", and you may find that\n" + "** the game will crash. Please upgrade to the v1.1 IWAD file.\n" + "** See here for more information:\n" + "** http://www.doomworld.com/classicdoom/info/patches.php\n"); + } } // Set the gamedescription string. -- cgit v1.2.3