]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Show centerprint messages in the upper part of the screen. Prevents them from overlap...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Jul 2011 20:57:55 +0000 (23:57 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Jul 2011 20:57:55 +0000 (23:57 +0300)
data/qcsrc/client/sbar.qc

index 6cb3007d66cb9ac5a5809a4cfd3a406fa4905b7b..36a8016f20b91fcc02249bb14cd71c728015d758 100644 (file)
@@ -2210,8 +2210,8 @@ void centerprint(string strMessage)
        havail = vid_conheight;\r
        if(cvar("con_chatpos") < 0)\r
                havail -= (-cvar("con_chatpos") + cvar("con_chat")) * cvar("con_chatsize"); // avoid overlapping chat\r
-       if(havail > vid_conheight - 70)\r
-               havail = vid_conheight - 70; // avoid overlapping HUD\r
+       if(havail > vid_conheight / 4)\r
+               havail = vid_conheight / 4; // avoid overlapping HUD\r
 \r
        centerprint_start_x = 0;\r
 \r