]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
put centerprints at bottom of scoreboard if more than 1 lines are being drawn
authorFruitieX <rasse@rasse-lappy.localdomain>
Wed, 4 Aug 2010 15:21:32 +0000 (18:21 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Wed, 4 Aug 2010 15:21:32 +0000 (18:21 +0300)
qcsrc/client/hud.qc
qcsrc/client/scoreboard.qh

index cd44e450f3ce23061539f788ce14da5970bbfc5d..962657db74c88045493019e2769f9f514e12084e 100644 (file)
@@ -263,6 +263,7 @@ void centerprint(string strMessage)
 #endif
 
        centerprint_num = i;
+
        centerprint_expire = time + cvar("scr_centertime");
 }
 
@@ -283,6 +284,10 @@ void HUD_DrawCenterPrint (void)
 
        sz = 0.8 + (a / 5);
 
+       if(centerprint_num > 1 && HUD_WouldDrawScoreboard())
+       {
+               centerprint_start_y = scoreboard_bottom + centerprint_fontsize_y;
+       }
        pos = centerprint_start;
        for (i=0; i<centerprint_num; i = i + 1)
        {
index 3ba6808ae7a9c9681a6c1113657302647ce937b2..b39b48e53b42202ef0fe7e6c34c284a788ef3db7 100644 (file)
@@ -1 +1,2 @@
+float HUD_WouldDrawScoreboard(void);
 float scoreboard_fade_alpha;