]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix the stomach board showing the wrong player in multiplayer, when showing your...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 17 Jul 2011 12:03:03 +0000 (15:03 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 17 Jul 2011 12:03:03 +0000 (15:03 +0300)
data/qcsrc/client/sbar.qc

index 502349807dfcfa67216e22105ad0cdeeb4e61a2d..ef810f2c8f435380413e15e2a97cb647f458a253 100644 (file)
@@ -3076,10 +3076,8 @@ void Sbar_Draw (void)
                                        if(pl.sv_entnum == getstati(STAT_VORE_EATEN) - 1)\r
                                                pred = pl;\r
                                }\r
-                               else if(spectatee_status && pl.sv_entnum == spectatee_status - 1)\r
-                                       pred = pl; // show the spectated player\r
-                               else if(!spectatee_status)\r
-                                       pred = self; // show us\r
+                               else if(pl.sv_entnum == player_localentnum - 1 || pl.sv_entnum == spectatee_status - 1)\r
+                                       pred = pl; // show us or the spectated player\r
                        }\r
 \r
                        // draw the predator's name\r