]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Last thing to clean up, I swear
authorSamual Lenks <samual@xonotic.org>
Sat, 1 Jun 2013 04:16:43 +0000 (00:16 -0400)
committerSamual Lenks <samual@xonotic.org>
Sat, 1 Jun 2013 04:16:43 +0000 (00:16 -0400)
qcsrc/client/csqcmodel_hooks.qc

index f6f94f089ebfcc47669ab19e885a6123ca3a833f..264f4797e58915db809e3154ddfbf73a97305c83 100644 (file)
@@ -607,8 +607,7 @@ void CSQCModel_Hook_PreDraw(float isplayer)
 
        if(self.isplayermodel) // this checks if it's a player MODEL!
        {
-               float islocalplayer = (self.entnum == player_localnum + 1);
-               CSQCPlayer_ModelAppearance_Apply(islocalplayer);
+               CSQCPlayer_ModelAppearance_Apply(self.entnum == player_localnum + 1);
                CSQCPlayer_LOD_Apply();
                if(!isplayer)
                        CSQCPlayer_FallbackFrame_Apply();