From 57107d4f5c93a3cdb5a6ee43fd5d2b47843c1980 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 1 Mar 2006 18:55:16 +0000 Subject: [PATCH] Fixes a recent colormod bug. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2039 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 0abfadce4..5356f85a7 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -965,12 +965,9 @@ void CL_ClearState (void) memset (cl_dlights, 0, sizeof(cl_dlights)); memset (cl_lightstyle, 0, sizeof(cl_lightstyle)); - memset (cl_baselines, 0, sizeof(cl_baselines)); - for (i = 0; i < MAX_EDICTS; i++) { - cl_baselines[i].scale = 1*16; - cl_baselines[i].trans = 255; + memcpy(&cl_baselines[i], &nullentitystate, sizeof(cl_baselines[i])); }