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:
hendricks266 2015-12-26 15:42:13 +00:00
parent 7f5a8f9a23
commit 0075e746ba
2 changed files with 5 additions and 17 deletions

View file

@ -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

View file

@ -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();