From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Date: Tue, 12 Jul 2011 20:57:55 +0000 (+0300)
Subject: Show centerprint messages in the upper part of the screen. Prevents them from overlap... 
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a7a493d9941b64fca17da29ca4b57cd9ed85fd67;p=voretournament%2Fvoretournament.git

Show centerprint messages in the upper part of the screen. Prevents them from overlapping the HUD ring
---

diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc
index 6cb3007d..36a8016f 100644
--- a/data/qcsrc/client/sbar.qc
+++ b/data/qcsrc/client/sbar.qc
@@ -2210,8 +2210,8 @@ void centerprint(string strMessage)
 	havail = vid_conheight;
 	if(cvar("con_chatpos") < 0)
 		havail -= (-cvar("con_chatpos") + cvar("con_chat")) * cvar("con_chatsize"); // avoid overlapping chat
-	if(havail > vid_conheight - 70)
-		havail = vid_conheight - 70; // avoid overlapping HUD
+	if(havail > vid_conheight / 4)
+		havail = vid_conheight / 4; // avoid overlapping HUD
 
 	centerprint_start_x = 0;