]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update player's renderflags every frame, it fixes player's body visible for an instan... 355/head
authorterencehill <piuntn@gmail.com>
Thu, 18 Aug 2016 14:03:30 +0000 (16:03 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 18 Aug 2016 14:03:30 +0000 (16:03 +0200)
qcsrc/lib/csqcmodel/cl_model.qc

index 6b86092967e67dd5b9638bafce9585ebfbec16fb..7f55a3c10f13b6a62518533321513a2f3fc02196 100644 (file)
@@ -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)