]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
This comes here
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 3 Sep 2010 22:42:44 +0000 (01:42 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 3 Sep 2010 22:42:44 +0000 (01:42 +0300)
data/qcsrc/client/sbar.qc

index 28e350f78cb56430986a734d00df3db1aef9028b..d71abb52d552f6ed397537aa082e108cea29f334 100644 (file)
@@ -2902,6 +2902,30 @@ void Sbar_Draw (void)
                                drawstring(bottomleft - '-76 150 0', "stomach has prey", '14 14 0', '0.75 1 0.75', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                }\r
 \r
+               // draw the stomach board\r
+               if not(getstati(STAT_STOMACH_EATEN)) // useless if we're inside someone\r
+               {\r
+                       entity pl;\r
+                       float f;\r
+\r
+                       pos = bottomleft;\r
+                       for(pl = players.sort_next; pl; pl = pl.sort_next)\r
+                       {\r
+                               if(pl.team == COLOR_SPECTATOR)\r
+                                       continue;\r
+\r
+                               if(spectatee_status)\r
+                                       f = pl.pleater == spectatee_status;\r
+                               else\r
+                                       f = pl.pleater == player_localentnum;\r
+                               if(f)\r
+                               {\r
+                                       Sbar_PrintStomachboardItem(pos - '-16 124 0', pl);\r
+                                       pos_y += 1.25 * sbar_fontsize_y;\r
+                               }\r
+                       }\r
+               }\r
+\r
                if (cvar("viewsize") <= 100 && vid_conwidth <= 1600) {\r
                        if (teamplay)\r
                                drawpic(bottom - '96 96 0', "gfx/hud/bg_status", '192 96 0', GetTeamRGB(myteam) * sbar_color_bg_team, sbar_alpha_bg, DRAWFLAG_NORMAL); // hud color = myteam color\r
@@ -2938,30 +2962,6 @@ void Sbar_Draw (void)
                        Sbar_DrawXNum(pos - '144 16 0', a, 3, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                }\r
 \r
-               // draw the stomach board\r
-               if not(getstati(STAT_STOMACH_EATEN)) // useless if we're inside someone\r
-               {\r
-                       entity pl;\r
-                       float f;\r
-\r
-                       pos = bottomleft;\r
-                       for(pl = players.sort_next; pl; pl = pl.sort_next)\r
-                       {\r
-                               if(pl.team == COLOR_SPECTATOR)\r
-                                       continue;\r
-\r
-                               if(spectatee_status)\r
-                                       f = pl.pleater == spectatee_status;\r
-                               else\r
-                                       f = pl.pleater == player_localentnum;\r
-                               if(f)\r
-                               {\r
-                                       Sbar_PrintStomachboardItem(pos - '-16 124 0', pl);\r
-                                       pos_y += 1.25 * sbar_fontsize_y;\r
-                               }\r
-                       }\r
-               }\r
-\r
                // draw scores and timer\r
                Sbar_Score();\r
                Sbar_Timer();\r