Remove the old_glowmod field which is no longer needed now 811/head
authorterencehill <piuntn@gmail.com>
Fri, 22 May 2020 13:16:05 +0000 (15:16 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 22 May 2020 13:16:05 +0000 (15:16 +0200)
qcsrc/client/csqcmodel_hooks.qc

index 7835463..624d997 100644 (file)
@@ -1,6 +1,5 @@
 #include "csqcmodel_hooks.qh"
 #include "autocvars.qh"
-#include "csqcmodel_hooks.qh"
 #include "miscfunctions.qh"
 #include <client/mutators/_mod.qh>
 #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));