foxygit / doom Log in
commit b5dabaf78e95b3a8450cc5debccdcbada1dcd5a2
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Tue Apr 19 05:19:58 2016 -0700
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Sat Apr 30 22:45:56 2016 -0700

    doom: Always allow loading PWADs for Freedoom: Phase 1

    With the combination of freedoom1.wad and -gameversion 1.666 through
    1.9, Chocolate Doom would fail to pass the checks against loading
    PWADs on the shareware version of Doom.
---
 src/doom/d_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 511ba5d4..d35daa4f 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1604,7 +1604,7 @@ void D_DoomMain (void)
     }

     // Check for -file in shareware
-    if (modifiedgame)
+    if (modifiedgame && !(gamevariant & freedoom))
     {
 	// These are the lumps that will be checked in IWAD,
 	// if any one is not present, execution will be aborted.