]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix the stomach board showing the spectatee's name when spectating a player who hasn...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Jul 2011 11:35:58 +0000 (14:35 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Jul 2011 11:35:58 +0000 (14:35 +0300)
data/qcsrc/client/sbar.qc

index 21349e65a878989896231da77f82955ea5cfffd1..8b7269ad9d0980cb8fc55a6b92952c6862782eb5 100644 (file)
@@ -3076,8 +3076,10 @@ void Sbar_Draw (void)
                                        if(pl.sv_entnum == getstati(STAT_VORE_EATEN) - 1)\r
                                                pred = pl;\r
                                }\r
-                               else\r
-                                       pred = self;\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
                        }\r
 \r
                        // draw the predator's name\r