mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
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:
parent
9f1d12eb2c
commit
07a2ccd79b
3 changed files with 9 additions and 2 deletions
|
@ -127,6 +127,10 @@ static uint32_t templenrepquot=1;
|
|||
|
||||
static int32_t duke3d_m32_globalflags;
|
||||
|
||||
enum {
|
||||
DUKE3D_NO_HARDCODED_FOGPALS = 1<<1,
|
||||
};
|
||||
|
||||
//////////////////// Key stuff ////////////////////
|
||||
|
||||
#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().
|
||||
palookup[0][239] = 239;
|
||||
|
||||
generatefogpals();
|
||||
if (!(duke3d_m32_globalflags & DUKE3D_NO_HARDCODED_FOGPALS))
|
||||
generatefogpals();
|
||||
|
||||
fillemptylookups();
|
||||
}
|
||||
|
|
|
@ -10986,7 +10986,8 @@ static void G_PostLoadPalette(void)
|
|||
if (basepaltable[SLIMEPAL] != NULL)
|
||||
Bmemset(&basepaltable[SLIMEPAL][255*3], 0, 3);
|
||||
|
||||
generatefogpals();
|
||||
if (!(duke3d_globalflags & DUKE3D_NO_HARDCODED_FOGPALS))
|
||||
generatefogpals();
|
||||
|
||||
E_ReplaceTransparentColorWithBlack();
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@ G_EXTERN int32_t duke3d_globalflags;
|
|||
|
||||
enum {
|
||||
DUKE3D_NO_WIDESCREEN_PINNING = 1<<0,
|
||||
DUKE3D_NO_HARDCODED_FOGPALS = 1<<1,
|
||||
};
|
||||
|
||||
G_EXTERN DukeStatus_t sbar;
|
||||
|
|
Loading…
Reference in a new issue