]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'terencehill/renderflags_update' into 'master'
authorterencehill <piuntn@gmail.com>
Thu, 18 Aug 2016 15:53:50 +0000 (15:53 +0000)
committerterencehill <piuntn@gmail.com>
Thu, 18 Aug 2016 15:53:50 +0000 (15:53 +0000)
renderflags fix

See merge request !355

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)