From 46452afa0bd923bb44cbc0a29205fe59db2e3f12 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Wed, 4 Aug 2010 18:21:32 +0300 Subject: [PATCH] put centerprints at bottom of scoreboard if more than 1 lines are being drawn --- qcsrc/client/hud.qc | 5 +++++ qcsrc/client/scoreboard.qh | 1 + 2 files changed, 6 insertions(+) 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