From: FruitieX Date: Wed, 4 Aug 2010 15:21:32 +0000 (+0300) Subject: put centerprints at bottom of scoreboard if more than 1 lines are being drawn X-Git-Tag: xonotic-v0.1.0preview~369 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=46452afa0bd923bb44cbc0a29205fe59db2e3f12;p=xonotic%2Fxonotic-data.pk3dir.git put centerprints at bottom of scoreboard if more than 1 lines are being drawn --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index cd44e450f..962657db7 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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