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 6cb3007..36a8016 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