From 1924edd331473348242be4e798cca181bdab16b9 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 22 May 2020 15:16:05 +0200 Subject: [PATCH] Remove the old_glowmod field which is no longer needed now --- qcsrc/client/csqcmodel_hooks.qc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 7835463ae..624d997fe 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -1,6 +1,5 @@ #include "csqcmodel_hooks.qh" #include "autocvars.qh" -#include "csqcmodel_hooks.qh" #include "miscfunctions.qh" #include #include "player_skeleton.qh" @@ -109,7 +108,6 @@ string forceplayermodels_goodmodel; int forceplayermodels_goodmodelindex; .vector glowmod; -.vector old_glowmod; void CSQCPlayer_ModelAppearance_PreUpdate(entity this) { @@ -294,9 +292,6 @@ void CSQCPlayer_ModelAppearance_Apply(entity this, bool islocalplayer) { if(this.csqcmodel_isdead) { - // Fade out to black now... - if(this.old_glowmod == '0 0 0') { this.old_glowmod = this.glowmod; } - float min_factor = bound(0, autocvar_cl_deathglow_min, 1); if(this.colormap > 0) min_factor /= 2; @@ -305,7 +300,6 @@ void CSQCPlayer_ModelAppearance_Apply(entity this, bool islocalplayer) if (this.glowmod == '0 0 0') this.glowmod.x = 0.000001; } - else if(this.old_glowmod != '0 0 0') { this.old_glowmod = '0 0 0'; } } //printf("CSQCPlayer_ModelAppearance_Apply(): state = %s, colormap = %f, glowmod = %s\n", (this.csqcmodel_isdead ? "DEAD" : "ALIVE"), this.colormap, vtos(this.glowmod)); -- 2.39.2