shithub: choc

Download patch

ref: b5dabaf78e95b3a8450cc5debccdcbada1dcd5a2
parent: 0fd26e606caf3db945e8e2813fac9c886bb49ada
author: Mike Swanson <mikeonthecomputer@gmail.com>
date: Tue Apr 19 01:19:58 EDT 2016

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.

--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1604,7 +1604,7 @@
     }
 
     // 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.