Fix specpower and specfactor definitions for diffuse maps.

git-svn-id: https://svn.eduke32.com/eduke32@1526 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-10-04 15:41:40 +00:00
parent 4a24bcc0ea
commit 58194cb281

View file

@ -1512,7 +1512,7 @@ static int32_t defsparser(scriptfile *script)
char *paltokptr = script->ltextptr, *palend; char *paltokptr = script->ltextptr, *palend;
int32_t pal=-1, i; int32_t pal=-1, i;
char *fn = NULL, *tfn = NULL; char *fn = NULL, *tfn = NULL;
double alphacut = -1.0, xscale = 1.0, yscale = 1.0; double alphacut = -1.0, xscale = 1.0, yscale = 1.0, specpower = 1.0, specfactor = 1.0;
char flags = 0; char flags = 0;
if (scriptfile_getsymbol(script,&pal)) break; if (scriptfile_getsymbol(script,&pal)) break;
@ -1529,6 +1529,10 @@ static int32_t defsparser(scriptfile *script)
scriptfile_getdouble(script,&xscale); break; scriptfile_getdouble(script,&xscale); break;
case T_YSCALE: case T_YSCALE:
scriptfile_getdouble(script,&yscale); break; scriptfile_getdouble(script,&yscale); break;
case T_SPECPOWER:
scriptfile_getdouble(script,&specpower); break;
case T_SPECFACTOR:
scriptfile_getdouble(script,&specfactor); break;
case T_NOCOMPRESS: case T_NOCOMPRESS:
flags |= 1; break; flags |= 1; break;
case T_NODOWNSIZE: case T_NODOWNSIZE:
@ -1572,7 +1576,7 @@ static int32_t defsparser(scriptfile *script)
xscale = 1.0f / xscale; xscale = 1.0f / xscale;
yscale = 1.0f / yscale; yscale = 1.0f / yscale;
hicsetsubsttex(tile,pal,fn,alphacut,xscale,yscale, 1.0f, 1.0f,flags); hicsetsubsttex(tile,pal,fn,alphacut,xscale,yscale, specpower, specfactor,flags);
} }
break; break;
case T_DETAIL: case T_GLOW: case T_SPECULAR: case T_NORMAL: case T_DETAIL: case T_GLOW: case T_SPECULAR: case T_NORMAL: