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 *file;
|
||||||
char *end;
|
char *end;
|
||||||
int i;
|
int i;
|
||||||
|
int style;
|
||||||
|
|
||||||
vec3_t org;
|
vec3_t org;
|
||||||
float radius;
|
float radius;
|
||||||
|
@ -877,6 +878,9 @@ void R_LoadRTLights(void)
|
||||||
file = COM_Parse(file);
|
file = COM_Parse(file);
|
||||||
rgb[2] = atof(com_token);
|
rgb[2] = atof(com_token);
|
||||||
|
|
||||||
|
file = COM_Parse(file);
|
||||||
|
style = atoi(com_token);
|
||||||
|
|
||||||
if (!file)
|
if (!file)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -890,6 +894,8 @@ void R_LoadRTLights(void)
|
||||||
dl->nodynamic = true;
|
dl->nodynamic = true;
|
||||||
dl->noflash = true;
|
dl->noflash = true;
|
||||||
|
|
||||||
|
dl->style = style+1;
|
||||||
|
|
||||||
file = end+1;
|
file = end+1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue