From: MirceaKitsune Date: Sun, 17 Jul 2011 12:06:09 +0000 (+0300) Subject: Hopefully fix another small issue with the stomach board colors X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=266694ad54a7358abde431c9d0a5bb7e2f277263;p=voretournament%2Fvoretournament.git Hopefully fix another small issue with the stomach board colors --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index ef810f2c..6aec0e8e 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -932,7 +932,7 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl) { if(getstati(STAT_VORE_EATEN)) { - if(teamplay && (GetPlayerColor(pl.entnum - 1) == GetPlayerColor(player_localentnum - 1) || GetPlayerColor(pl.entnum - 1) == GetPlayerColor(spectatee_status - 1))) // same team + if(teamplay && (GetPlayerColor(getstati(STAT_VORE_EATEN) - 1) == GetPlayerColor(player_localentnum - 1) || GetPlayerColor(getstati(STAT_VORE_EATEN) - 1) == GetPlayerColor(spectatee_status - 1))) // same team hl_color = stov(cvar_string("sbar_stomachboard_color2")); else hl_color = stov(cvar_string("sbar_stomachboard_color3"));