]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Hopefully fix another small issue with the stomach board colors
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 17 Jul 2011 12:06:09 +0000 (15:06 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 17 Jul 2011 12:06:09 +0000 (15:06 +0300)
data/qcsrc/client/sbar.qc

index ef810f2c8f435380413e15e2a97cb647f458a253..6aec0e8ea76638bba84975c553e5eacf077303b2 100644 (file)
@@ -932,7 +932,7 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl)
                {\r
                        if(getstati(STAT_VORE_EATEN))\r
                        {\r
-                               if(teamplay && (GetPlayerColor(pl.entnum - 1) == GetPlayerColor(player_localentnum - 1) || GetPlayerColor(pl.entnum - 1) == GetPlayerColor(spectatee_status - 1))) // same team\r
+                               if(teamplay && (GetPlayerColor(getstati(STAT_VORE_EATEN) - 1) == GetPlayerColor(player_localentnum - 1) || GetPlayerColor(getstati(STAT_VORE_EATEN) - 1) == GetPlayerColor(spectatee_status - 1))) // same team\r
                                        hl_color = stov(cvar_string("sbar_stomachboard_color2"));\r
                                else\r
                                        hl_color = stov(cvar_string("sbar_stomachboard_color3"));\r