]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 7835463ae75d2db430e8f89db9e073dd57c63435..624d997fecd7cc5bb5b51cc83fb106c72755a079 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));