Fix the definetint def token, broken in r6557.

git-svn-id: https://svn.eduke32.com/eduke32@6674 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-02-18 00:24:54 +00:00
parent 3ae7cb1de5
commit dc7e727f0c

View file

@ -498,18 +498,15 @@ static int32_t defsparser(scriptfile *script)
break;
case T_DEFINETINT:
{
int32_t pal, r,g,b,sr,sg,sb,f;
int32_t pal, r,g,b,f;
if (scriptfile_getsymbol(script,&pal)) break;
if (scriptfile_getnumber(script,&r)) break;
if (scriptfile_getnumber(script,&g)) break;
if (scriptfile_getnumber(script,&b)) break;
if (scriptfile_getnumber(script,&sr)) break;
if (scriptfile_getnumber(script,&sg)) break;
if (scriptfile_getnumber(script,&sb)) break;
if (scriptfile_getnumber(script,&f)) break; //effects
#ifdef USE_OPENGL
hicsetpalettetint(pal,r,g,b,sr,sg,sb,f);
hicsetpalettetint(pal,r,g,b,0,0,0,f);
#endif
}
break;