]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Attempt to fix spectators. This might not be the right way and need to be checked...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 3 Sep 2010 23:23:18 +0000 (02:23 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 3 Sep 2010 23:23:18 +0000 (02:23 +0300)
data/qcsrc/client/sbar.qc

index 438e3addb74683e7cae74482fb5793cc631d68f7..91825f7239b1665bfcbf774011e464aefdaea1a1 100644 (file)
@@ -2914,13 +2914,15 @@ void Sbar_Draw (void)
                                if(pl.team == COLOR_SPECTATOR)\r
                                        continue;\r
 \r
-                               //if(spectatee_status)\r
-                               //      f = pl.pleater == spectatee_status;\r
-\r
                                if(getstati(STAT_STOMACH_EATEN))\r
                                        f = pl.pleater == getstati(STAT_STOMACH_EATEN);\r
                                else\r
-                                       f = pl.pleater == player_localentnum;\r
+                               {\r
+                                       if(spectatee_status)\r
+                                               f = pl.pleater == spectatee_status;\r
+                                       else\r
+                                               f = pl.pleater == player_localentnum;\r
+                               }\r
 \r
                                if(f)\r
                                {\r