From: MirceaKitsune Date: Mon, 18 Jul 2011 21:30:31 +0000 (+0300) Subject: Limit the stomach board to 9 entries due to the HUD design X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a07a4724bcb77985383ece19a0e644b2f5c1b03;p=voretournament%2Fvoretournament.git Limit the stomach board to 9 entries due to the HUD design --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 72dc19d6..4250c120 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3059,7 +3059,7 @@ void Sbar_Draw (void) // draw the stomach board player list entity pl, pred; - float f; + float f, l; pos = bottomleft; for(pl = players.sort_next; pl; pl = pl.sort_next) @@ -3077,10 +3077,11 @@ void Sbar_Draw (void) f = pl.plpredator == player_localentnum; } - if(f) + if(f && l <= 8) // limit the stomach board to 9 entries due to the HUD design { Sbar_PrintStomachboardItem(pos - '-16 124 0', pl); pos_y += 1.1 * sbar_fontsize_y; + l += 1; } // set the predator's name