From: terencehill Date: Thu, 18 Aug 2016 14:03:30 +0000 (+0200) Subject: Update player's renderflags every frame, it fixes player's body visible for an instan... X-Git-Tag: xonotic-v0.8.2~704^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=361b8d9cd6ba8dd0363b554a38dbed8b3333ee2a;p=xonotic%2Fxonotic-data.pk3dir.git Update player's renderflags every frame, it fixes player's body visible for an instant when switching spectated player --- diff --git a/qcsrc/lib/csqcmodel/cl_model.qc b/qcsrc/lib/csqcmodel/cl_model.qc index 6b8609296..7f55a3c10 100644 --- a/qcsrc/lib/csqcmodel/cl_model.qc +++ b/qcsrc/lib/csqcmodel/cl_model.qc @@ -194,6 +194,14 @@ void CSQCModel_Draw(entity this) CSQCModel_Hook_PreDraw(this, isplayer); + if(isplayer) + { + if(this.entnum == player_localentnum) + this.renderflags |= RF_EXTERNALMODEL; + else + this.renderflags &= ~RF_EXTERNALMODEL; + } + // inherit draw flags easily entity root = this; while(root.tag_entity)