Fix fake prey getting rendered as well
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 23:41:27 +0000 (02:41 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 23:41:27 +0000 (02:41 +0300)
data/qcsrc/server/cl_client.qc

index e707f99..42c84e2 100644 (file)
@@ -530,7 +530,7 @@ float Client_customizeentityforclient()
        Client_setmodel(setmodel_state());\r
        if not(self.stat_eaten || self.fakeprey)\r
                self.alpha = default_player_alpha;\r
-       else if(cvar("g_vore_neighborprey_distance") && (self.predator == other.predator || self.predator == other.fakepredator) && !(other.cvar_chase_active || other.classname == "observer"))\r
+       else if(cvar("g_vore_neighborprey_distance") && !self.fakeprey && (self.predator == other.predator || self.predator == other.fakepredator) && !(other.cvar_chase_active || other.classname == "observer"))\r
                self.alpha = default_player_alpha; // allow seeing neighboring prey\r
        else\r
                self.alpha = -1; // hide prey\r