From: MirceaKitsune Date: Fri, 15 Jul 2011 11:35:58 +0000 (+0300) Subject: Fix the stomach board showing the spectatee's name when spectating a player who hasn... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1c73b1306086947cd234aa632ebce53aba23532d;p=voretournament%2Fvoretournament.git Fix the stomach board showing the spectatee's name when spectating a player who hasn't been eaten, instead of showing the spectated player's name --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 21349e65..8b7269ad 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3076,8 +3076,10 @@ void Sbar_Draw (void) if(pl.sv_entnum == getstati(STAT_VORE_EATEN) - 1) pred = pl; } - else - pred = self; + else if(spectatee_status && pl.sv_entnum == spectatee_status - 1) + pred = pl; // show the spectated player + else if(!spectatee_status) + pred = self; // show us } // draw the predator's name