engine/EngineVideoFog.c
/*	Handle an SVC_FOG message from server
*/
Handle an SVC_FOG message from server
Handle an SVC_FOG message from server
void Fog_ParseServerMessage(void)
{
	float density, red, green, blue, time;
	density = MSG_ReadByte()/255.0;
	red		= MSG_ReadByte()/255.0;
	green	= MSG_ReadByte()/255.0;
	blue	= MSG_ReadByte()/255.0;
	time	= Math_Max(0.0,MSG_ReadShort()/100.0);
	Fog_Update (density, red, green, blue, time);
}
void Fog_ParseServerMessage ( void ) { float density , red , green , blue , time ; density = MSG_ReadByte ( ) / 255.0 ; red = MSG_ReadByte ( ) / 255.0 ; green = MSG_ReadByte ( ) / 255.0 ; blue = MSG_ReadByte ( ) / 255.0 ; time = Math_Max ( 0.0 , MSG_ReadShort ( ) / 100.0 ) ; Fog_Update ( density , red , green , blue , time ) ; }
Handle an SVC_FOG message from server
Handle an SVC_FOG message from server