- Added a compatibility lump because I think it's a shame that Void doesn't

work properly on new ZDooms after all the collaboration I had with Cyb on
  that map. (Works with other maps, too.)


SVN r1402 (trunk)
This commit is contained in:
Randy Heit 2009-02-05 02:55:28 +00:00
commit 4e509728a0
16 changed files with 1058 additions and 309 deletions

View file

@ -100,6 +100,7 @@
#include "d_netinf.h"
#include "v_palette.h"
#include "m_cheat.h"
#include "compatibility.h"
EXTERN_CVAR(Bool, hud_althud)
void DrawHUD();
@ -509,6 +510,7 @@ CVAR (Flag, sv_noautoaim, dmflags2, DF2_NOAUTOAIM);
//==========================================================================
int i_compatflags; // internal compatflags composed from the compatflags CVAR and MAPINFO settings
int ii_compatflags, ib_compatflags;
EXTERN_CVAR(Int, compatmode)
@ -520,7 +522,7 @@ static int GetCompatibility(int mask)
CUSTOM_CVAR (Int, compatflags, 0, CVAR_ARCHIVE|CVAR_SERVERINFO)
{
i_compatflags = GetCompatibility(self);
i_compatflags = GetCompatibility(self) | ii_compatflags;
}
CUSTOM_CVAR(Int, compatmode, 0, CVAR_ARCHIVE|CVAR_SERVERINFO|CVAR_NOINITCALL)
@ -2366,6 +2368,8 @@ void D_DoomMain (void)
Printf ("ST_Init: Init startup screen.\n");
StartScreen = FStartupScreen::CreateInstance (R_GuesstimateNumTextures() + 5);
ParseCompatibility();
Printf ("P_Init: Checking cmd-line parameters...\n");
flags = dmflags;
if (Args->CheckParm ("-nomonsters")) flags |= DF_NO_MONSTERS;