Duke: Add globalgameflag DUKE3D_NO_HARDCODED_FOGPALS, which prevents the game from automatically defining white, red, green, and blue fogpals in the first four adjacent empty palookup slots it finds.

git-svn-id: https://svn.eduke32.com/eduke32@5375 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-10-03 11:53:19 +00:00
parent 9f1d12eb2c
commit 07a2ccd79b
3 changed files with 9 additions and 2 deletions

View file

@ -127,6 +127,10 @@ static uint32_t templenrepquot=1;
static int32_t duke3d_m32_globalflags; static int32_t duke3d_m32_globalflags;
enum {
DUKE3D_NO_HARDCODED_FOGPALS = 1<<1,
};
//////////////////// Key stuff //////////////////// //////////////////// Key stuff ////////////////////
#define eitherALT (keystatus[KEYSC_LALT] || keystatus[KEYSC_RALT]) #define eitherALT (keystatus[KEYSC_LALT] || keystatus[KEYSC_RALT])
@ -9937,7 +9941,8 @@ void ExtPostInit(void)
// This makes it possible to sensibly use Lunatic's engine.saveLookupDat(). // This makes it possible to sensibly use Lunatic's engine.saveLookupDat().
palookup[0][239] = 239; palookup[0][239] = 239;
generatefogpals(); if (!(duke3d_m32_globalflags & DUKE3D_NO_HARDCODED_FOGPALS))
generatefogpals();
fillemptylookups(); fillemptylookups();
} }

View file

@ -10986,7 +10986,8 @@ static void G_PostLoadPalette(void)
if (basepaltable[SLIMEPAL] != NULL) if (basepaltable[SLIMEPAL] != NULL)
Bmemset(&basepaltable[SLIMEPAL][255*3], 0, 3); Bmemset(&basepaltable[SLIMEPAL][255*3], 0, 3);
generatefogpals(); if (!(duke3d_globalflags & DUKE3D_NO_HARDCODED_FOGPALS))
generatefogpals();
E_ReplaceTransparentColorWithBlack(); E_ReplaceTransparentColorWithBlack();

View file

@ -59,6 +59,7 @@ G_EXTERN int32_t duke3d_globalflags;
enum { enum {
DUKE3D_NO_WIDESCREEN_PINNING = 1<<0, DUKE3D_NO_WIDESCREEN_PINNING = 1<<0,
DUKE3D_NO_HARDCODED_FOGPALS = 1<<1,
}; };
G_EXTERN DukeStatus_t sbar; G_EXTERN DukeStatus_t sbar;