summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2015-05-05 22:42:14 -0400
committerSimon Howard2015-05-05 22:42:14 -0400
commit62a8e9b6c6c2018ccea04ec08275afa6eaffc4ec (patch)
tree734eca5f4a498f75b46b70bcb0db8677d34dda39
parent75c479943f4eb0199150b3a46e838f203863ec58 (diff)
downloadchocolate-doom-62a8e9b6c6c2018ccea04ec08275afa6eaffc4ec.tar.gz
chocolate-doom-62a8e9b6c6c2018ccea04ec08275afa6eaffc4ec.tar.bz2
chocolate-doom-62a8e9b6c6c2018ccea04ec08275afa6eaffc4ec.zip
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.
-rw-r--r--src/hexen/h2_main.c11
1 files changed, 11 insertions, 0 deletions
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.