No need to check if self == other when setting player alpha
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 23:14:41 +0000 (02:14 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 23:14:41 +0000 (02:14 +0300)
data/qcsrc/server/cl_client.qc

index 69404cb855267f1d807420b5d3d3622b6083b3dc..e707f9997b44effe93a24ccbd21e053532f801c4 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) && self != other && !(other.cvar_chase_active || other.classname == "observer"))\r
+       else if(cvar("g_vore_neighborprey_distance") && (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