Added $OPTVAL_MBFSTRICT to menudef.txt, and added corresponding case 7 to the compatmode cvar in d_main.cpp

This commit is contained in:
Blue 2020-04-08 07:20:13 -07:00 committed by Christoph Oelckers
parent 0d7eb9da58
commit 52f1c8a0d1
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,4 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
//
// Copyright 1993-1996 id Software // Copyright 1993-1996 id Software
// Copyright 1999-2016 Randy Heit // Copyright 1999-2016 Randy Heit
// Copyright 2002-2016 Christoph Oelckers // Copyright 2002-2016 Christoph Oelckers
@ -672,6 +671,12 @@ CUSTOM_CVAR(Int, compatmode, 0, CVAR_ARCHIVE|CVAR_NOINITCALL)
w = COMPATF2_POINTONLINE | COMPATF2_EXPLODE2; w = COMPATF2_POINTONLINE | COMPATF2_EXPLODE2;
break; break;
case 7: // Stricter MBF compatibility
v = COMPATF_CORPSEGIBS | COMPATF_NOBLOCKFRIENDS | COMPATF_MBFMONSTERMOVE | COMPATF_INVISIBILITY |
COMPATF_NOTOSSDROPS | COMPATF_MUSHROOM | COMPATF_NO_PASSMOBJ | COMPATF_BOOMSCROLL | COMPATF_WALLRUN |
COMPATF_TRACE | COMPATF_HITSCAN | COMPATF_MISSILECLIP | COMPATF_MASKEDMIDTEX | COMPATF_SOUNDTARGET;
w = COMPATF2_POINTONLINE | COMPATF2_EXPLODE1 | COMPATF2_EXPLODE2;
break;
} }
compatflags = v; compatflags = v;
compatflags2 = w; compatflags2 = w;

View file

@ -1679,6 +1679,7 @@ OptionValue CompatModes
3, "$OPTVAL_BOOM" 3, "$OPTVAL_BOOM"
6, "$OPTVAL_BOOMSTRICT" 6, "$OPTVAL_BOOMSTRICT"
5, "$OPTVAL_MBF" 5, "$OPTVAL_MBF"
7, "$OPTVAL_MBFSTRICT"
4, "$OPTVAL_ZDOOM2063" 4, "$OPTVAL_ZDOOM2063"
} }