mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +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();
|
||||
}
|
||||
|
||||
void SetGamePalette(int32_t j)
|
||||
void SetGamePalette(int32_t palid)
|
||||
{
|
||||
switch (j)
|
||||
{
|
||||
default:
|
||||
j=0;
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
if (acurpalette==j)
|
||||
return;
|
||||
acurpalette=j;
|
||||
setbrightness(GAMMA_CALC,j,2);
|
||||
break;
|
||||
}
|
||||
if ((unsigned)palid >= MAXBASEPALS)
|
||||
palid = 0;
|
||||
|
||||
setbrightness(GAMMA_CALC, palid, 2);
|
||||
}
|
||||
|
||||
static void SearchSectors(int32_t dir) // <0: backwards, >=0: forwards
|
||||
|
|
|
@ -75,8 +75,6 @@ static int32_t updownunits=1024;
|
|||
|
||||
//int32_t intro=0;
|
||||
|
||||
static int32_t acurpalette=0;
|
||||
|
||||
//void ContextHelp(int16_t spritenum);
|
||||
//void ResetKeys();
|
||||
|
||||
|
|
Loading…
Reference in a new issue