From 546be5849afd2a5c79900f9a509abe63e0f39b5c Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 2 Dec 2020 06:38:32 +0000 Subject: [PATCH] Allow server cshifts to be disabled when playing back demos. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5788 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/view.c | 10 +++++----- engine/d3d/d3d_backend.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/client/view.c b/engine/client/view.c index 2416c5bd2..66e15fbbb 100644 --- a/engine/client/view.c +++ b/engine/client/view.c @@ -818,17 +818,17 @@ void V_CalcBlend (float *hw_blend) //don't apply it to the server, we'll blend the two later if the user has no hardware gamma (if they do have it, we use just the server specified value) This way we avoid winnt users having a cheat with flashbangs and stuff. for (j=0 ; jcshifts[j].percent / 255.0; //don't allow modification of this one. + } + else { if (!gl_cshiftpercent.value || !gl_cshiftenabled.ival) continue; a2 = ((pv->cshifts[j].percent * gl_cshiftpercent.value) / 100.0) / 255.0; } - else - { - a2 = pv->cshifts[j].percent / 255.0; //don't allow modification of this one. - } if (a2 <= 0) continue; diff --git a/engine/d3d/d3d_backend.c b/engine/d3d/d3d_backend.c index fd1fb8974..b2aaeffb4 100644 --- a/engine/d3d/d3d_backend.c +++ b/engine/d3d/d3d_backend.c @@ -1658,7 +1658,7 @@ static void GenerateFogTexture(texid_t *tex, float density, float zscale) if (!TEXVALID(*tex)) *tex = Image_CreateTexture("***fog***", NULL, IF_CLAMP|IF_NOMIPMAP); - Image_Upload(*tex, TF_RGBA32, fogdata, NULL, FOGS, FOGT, IF_CLAMP|IF_NOMIPMAP); + Image_Upload(*tex, TF_RGBA32, fogdata, NULL, FOGS, FOGT, 1, IF_CLAMP|IF_NOMIPMAP); }