summaryrefslogtreecommitdiff
path: root/source/cl_parse.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-03-03 15:45:04 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-03-03 15:45:04 +0000
commitad59a391bfcd72eda76f1ebbff5f4ae73256c8db (patch)
treed913e09820442c3ab512101c4f60d380b76da414 /source/cl_parse.c
parent25de275d0db688460a0f3642ba3c72ab44af3e96 (diff)
Don't build client side lightstyles code unless software refresh is in use.
Diffstat (limited to 'source/cl_parse.c')
-rw-r--r--source/cl_parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/cl_parse.c b/source/cl_parse.c
index 5b32eaf..5d5d856 100644
--- a/source/cl_parse.c
+++ b/source/cl_parse.c
@@ -653,10 +653,12 @@ static void CL_ParseConfigstring( int index ) {
cl.mapname[len - 9] = 0; // cut off ".bsp"
return;
}
+#if USE_LIGHTSTYLES
if (index >= CS_LIGHTS && index < CS_LIGHTS+MAX_LIGHTSTYLES) {
- CL_SetLightstyle( index - CS_LIGHTS, string, len );
+ CL_SetLightStyle( index - CS_LIGHTS, string, len );
return;
}
+#endif
if( cls.state < ca_precached ) {
return;