]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't disable rendering completely if the player is invisible, fixes #2395
authorMario <mario.mario@y7mail.com>
Mon, 2 Nov 2020 00:48:15 +0000 (10:48 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 2 Nov 2020 00:48:15 +0000 (10:48 +1000)
qcsrc/client/csqcmodel_hooks.qc

index e5f00f9460af6bc5edccb584b429f683c83e0521..f53ea725c7d537403a7d785b7e21caf66cc82599 100644 (file)
@@ -618,7 +618,7 @@ void CSQCModel_Hook_PreDraw(entity this, bool isplayer)
                return;
        this.csqcmodel_predraw_run = framecount;
 
-       if(!this.modelindex || this.model == "null" || this.alpha < 0)
+       if(!this.modelindex || this.model == "null")
        {
                this.drawmask = 0;
                if(this.snd_looping > 0)