From 1a07a4724bcb77985383ece19a0e644b2f5c1b03 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 19 Jul 2011 00:30:31 +0300 Subject: [PATCH] Limit the stomach board to 9 entries due to the HUD design --- data/qcsrc/client/sbar.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2