mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Mapster: Don't restrict setgamepalette to the range [0, 3].
git-svn-id: https://svn.eduke32.com/eduke32@5495 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7f5a8f9a23
commit
0075e746ba
2 changed files with 5 additions and 17 deletions
|
@ -10857,22 +10857,12 @@ void faketimerhandler(void)
|
||||||
sampletimer();
|
sampletimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetGamePalette(int32_t j)
|
void SetGamePalette(int32_t palid)
|
||||||
{
|
{
|
||||||
switch (j)
|
if ((unsigned)palid >= MAXBASEPALS)
|
||||||
{
|
palid = 0;
|
||||||
default:
|
|
||||||
j=0;
|
setbrightness(GAMMA_CALC, palid, 2);
|
||||||
case 0:
|
|
||||||
case 1:
|
|
||||||
case 2:
|
|
||||||
case 3:
|
|
||||||
if (acurpalette==j)
|
|
||||||
return;
|
|
||||||
acurpalette=j;
|
|
||||||
setbrightness(GAMMA_CALC,j,2);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SearchSectors(int32_t dir) // <0: backwards, >=0: forwards
|
static void SearchSectors(int32_t dir) // <0: backwards, >=0: forwards
|
||||||
|
|
|
@ -75,8 +75,6 @@ static int32_t updownunits=1024;
|
||||||
|
|
||||||
//int32_t intro=0;
|
//int32_t intro=0;
|
||||||
|
|
||||||
static int32_t acurpalette=0;
|
|
||||||
|
|
||||||
//void ContextHelp(int16_t spritenum);
|
//void ContextHelp(int16_t spritenum);
|
||||||
//void ResetKeys();
|
//void ResetKeys();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue