diff --git a/engine/client/view.c b/engine/client/view.c index ee4d965ee..0f53522c6 100644 --- a/engine/client/view.c +++ b/engine/client/view.c @@ -450,6 +450,11 @@ V_cshift_f */ void V_cshift_f (void) { + if (Cmd_Argc() != 5) //this is actually to warn of a malice bug (and prevent a totally black screen) more than it is to help the user. :/ + { + Con_Printf("v_cshift: v_cshift \n"); + return; + } if (Cmd_FromServer()) { cl.cshifts[CSHIFT_SERVER].destcolor[0] = atoi(Cmd_Argv(1)); @@ -602,10 +607,9 @@ void GLV_CalcBlend (void) } else { - a2 = cl.cshifts[j].percent / 255.0; + a2 = cl.cshifts[j].percent / 255.0; //don't allow modification of this one. } -// a2 = (cl.cshifts[j].percent/2)/255.0; if (!a2) continue; a = a + a2*(1-a); @@ -748,10 +752,14 @@ void SWV_UpdatePalette (void) new = false; + force = V_CheckGamma (); + for (i=0 ; i