mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Mapster32: when changing screen palettes, pass flag 2 to setbrightness().
This will prevent it from calling gltexinvalidateall() when e.g. submerging and resurfacing, mimicking the behavior of the game, where only gltexinvalidate8() is called in such situations. git-svn-id: https://svn.eduke32.com/eduke32@2013 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
85b65c26d3
commit
009d405803
1 changed files with 4 additions and 4 deletions
|
@ -11770,28 +11770,28 @@ void SetBOSS1Palette(void)
|
|||
{
|
||||
if (acurpalette==3) return;
|
||||
acurpalette=3;
|
||||
setbrightness(GAMMA_CALC,5,0);
|
||||
setbrightness(GAMMA_CALC,5,2);
|
||||
}
|
||||
|
||||
void SetSLIMEPalette(void)
|
||||
{
|
||||
if (acurpalette==2) return;
|
||||
acurpalette=2;
|
||||
setbrightness(GAMMA_CALC,2,0);
|
||||
setbrightness(GAMMA_CALC,2,2);
|
||||
}
|
||||
|
||||
void SetWATERPalette(void)
|
||||
{
|
||||
if (acurpalette==1) return;
|
||||
acurpalette=1;
|
||||
setbrightness(GAMMA_CALC,1,0);
|
||||
setbrightness(GAMMA_CALC,1,2);
|
||||
}
|
||||
|
||||
void SetGAMEPalette(void)
|
||||
{
|
||||
if (acurpalette==0) return;
|
||||
acurpalette=0;
|
||||
setbrightness(GAMMA_CALC,6,0);
|
||||
setbrightness(GAMMA_CALC,6,2);
|
||||
}
|
||||
|
||||
static void SearchSectors(int32_t dir) // <0: backwards, >=0: forwards
|
||||
|
|
Loading…
Reference in a new issue