From 58194cb281893d7bb50696d406eb691a3b943e49 Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 4 Oct 2009 15:41:40 +0000 Subject: [PATCH] Fix specpower and specfactor definitions for diffuse maps. git-svn-id: https://svn.eduke32.com/eduke32@1526 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/defs.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/defs.c b/polymer/eduke32/build/src/defs.c index 4fd2e10af..7a292dc3b 100644 --- a/polymer/eduke32/build/src/defs.c +++ b/polymer/eduke32/build/src/defs.c @@ -1512,7 +1512,7 @@ static int32_t defsparser(scriptfile *script) char *paltokptr = script->ltextptr, *palend; int32_t pal=-1, i; 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; if (scriptfile_getsymbol(script,&pal)) break; @@ -1529,6 +1529,10 @@ static int32_t defsparser(scriptfile *script) scriptfile_getdouble(script,&xscale); break; case T_YSCALE: scriptfile_getdouble(script,&yscale); break; + case T_SPECPOWER: + scriptfile_getdouble(script,&specpower); break; + case T_SPECFACTOR: + scriptfile_getdouble(script,&specfactor); break; case T_NOCOMPRESS: flags |= 1; break; case T_NODOWNSIZE: @@ -1572,7 +1576,7 @@ static int32_t defsparser(scriptfile *script) xscale = 1.0f / xscale; 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; case T_DETAIL: case T_GLOW: case T_SPECULAR: case T_NORMAL: