From: Mario Date: Mon, 2 Nov 2020 00:48:15 +0000 (+1000) Subject: Don't disable rendering completely if the player is invisible, fixes #2395 X-Git-Tag: xonotic-v0.8.5~694 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=c6a2f2ceed6a453934294f9dd44d4d8459e7a507;p=xonotic%2Fxonotic-data.pk3dir.git Don't disable rendering completely if the player is invisible, fixes #2395 --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index e5f00f946..f53ea725c 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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)