From 2eb8db11d0f64a2eeaf5397c6db78709c13c4351 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 11 Dec 2004 03:46:37 +0000 Subject: [PATCH] parse lightstyles for real-time lights. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@629 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_rmisc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/gl/gl_rmisc.c b/engine/gl/gl_rmisc.c index 46840bfb5..336b6bf40 100644 --- a/engine/gl/gl_rmisc.c +++ b/engine/gl/gl_rmisc.c @@ -835,6 +835,7 @@ void R_LoadRTLights(void) char *file; char *end; int i; + int style; vec3_t org; float radius; @@ -877,6 +878,9 @@ void R_LoadRTLights(void) file = COM_Parse(file); rgb[2] = atof(com_token); + file = COM_Parse(file); + style = atoi(com_token); + if (!file) break; @@ -890,6 +894,8 @@ void R_LoadRTLights(void) dl->nodynamic = true; dl->noflash = true; + dl->style = style+1; + file = end+1; } }