summaryrefslogtreecommitdiff
path: root/src/heretic
diff options
context:
space:
mode:
authorSimon Howard2014-04-19 03:32:38 -0400
committerSimon Howard2014-04-19 03:32:38 -0400
commit48e96443151db631e1153d459e850c49a96ccb29 (patch)
treec6a8df63662657dc92eeb73c0112f1190d3b21a7 /src/heretic
parentb86a383c6fdc394ef995a8e88324c89408f01c05 (diff)
downloadchocolate-doom-48e96443151db631e1153d459e850c49a96ccb29.tar.gz
chocolate-doom-48e96443151db631e1153d459e850c49a96ccb29.tar.bz2
chocolate-doom-48e96443151db631e1153d459e850c49a96ccb29.zip
Exit with error on startup if using the wrong IWAD.
Having multiple binaries can cause some confusion - some users try to run chocolate-doom with hexen.wad, thinking it is supported. Add a startup check that makes sure the user is not trying to start the game using the wrong IWAD file for the binary being run. This fixes #382.
Diffstat (limited to 'src/heretic')
-rw-r--r--src/heretic/d_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c
index 89c88108..bb3b4f08 100644
--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -979,6 +979,7 @@ void D_DoomMain(void)
}
D_AddFile(iwadfile);
+ W_CheckCorrectIWAD(heretic);
W_ParseCommandLine();
//!