parse lightstyles for real-time lights.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@629 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f6255c4713
commit
2eb8db11d0
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue