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 drfrag
parent 7d4603f4c1
commit 86927074c9
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,4 @@
//-----------------------------------------------------------------------------
//
// Copyright 1993-1996 id Software
// Copyright 1999-2016 Randy Heit
// Copyright 2002-2016 Christoph Oelckers
@ -620,6 +619,12 @@ CUSTOM_CVAR(Int, compatmode, 0, CVAR_ARCHIVE|CVAR_NOINITCALL)
w = COMPATF2_POINTONLINE | COMPATF2_EXPLODE2;
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;
compatflags2 = w;

View file

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