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 21349e6..8b7269a 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