diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index c0706dc0a..9d3bc3cc7 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -1325,11 +1325,11 @@ void CL_ParseLightStyle( sizebuf_t *msg, connprotocol_t proto ) { int style; const char *s; - float f = 0.0f; + float f = cl.mtime[0]; style = MSG_ReadByte( msg ); s = MSG_ReadString( msg ); - if( proto != PROTO_GOLDSRC ) + if( proto != PROTO_GOLDSRC && proto != PROTO_QUAKE ) f = MSG_ReadFloat( msg ); CL_SetLightstyle( style, s, f ); diff --git a/engine/client/cl_qparse.c b/engine/client/cl_qparse.c index 57b6ae908..b294bfa8b 100644 --- a/engine/client/cl_qparse.c +++ b/engine/client/cl_qparse.c @@ -970,9 +970,7 @@ void CL_ParseQuakeMessage( sizebuf_t *msg ) CL_ParseQuakeServerInfo( msg ); break; case svc_lightstyle: - param1 = MSG_ReadByte( msg ); - str = MSG_ReadString( msg ); - CL_SetLightstyle( param1, str, cl.mtime[0] ); + CL_ParseLightStyle( msg, PROTO_QUAKE ); break; case svc_updatename: param1 = MSG_ReadByte( msg );