]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Limit the stomach board to 9 entries due to the HUD design
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 18 Jul 2011 21:30:31 +0000 (00:30 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 18 Jul 2011 21:30:31 +0000 (00:30 +0300)
data/qcsrc/client/sbar.qc

index 72dc19d646b07c797bd9dfc79b3b172dfc78a2a2..4250c12086406ff6d4ee39f7943f5b561548d73d 100644 (file)
@@ -3059,7 +3059,7 @@ void Sbar_Draw (void)
 \r
                        // draw the stomach board player list\r
                        entity pl, pred;\r
-                       float f;\r
+                       float f, l;\r
 \r
                        pos = bottomleft;\r
                        for(pl = players.sort_next; pl; pl = pl.sort_next)\r
@@ -3077,10 +3077,11 @@ void Sbar_Draw (void)
                                                f = pl.plpredator == player_localentnum;\r
                                }\r
 \r
-                               if(f)\r
+                               if(f && l <= 8) // limit the stomach board to 9 entries due to the HUD design\r
                                {\r
                                        Sbar_PrintStomachboardItem(pos - '-16 124 0', pl);\r
                                        pos_y += 1.1 * sbar_fontsize_y;\r
+                                       l += 1;\r
                                }\r
 \r
                                // set the predator's name\r