From 5112233ca99131fa64eba294fe562be0669ccdd3 Mon Sep 17 00:00:00 2001 From: Samual Date: Mon, 29 Aug 2011 00:23:51 -0400 Subject: [PATCH] Bugfix for 0.5: Basically just allow drawing of larger centerprints ANYWAY instead of rejecting them totally, this way e.g. motd and such still shows up. --- qcsrc/client/hud.qc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index fc6164e6a..a1aae684f 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4580,11 +4580,12 @@ void HUD_CenterPrint (void) pos_y -= fontsize_y; else pos_y -= fontsize_y * CENTERPRINT_SPACING/2; - if (pos_y < panel_pos_y) // check if the next line can be shown - { - drawfontscale = '1 1 0'; - return; - } + // NOTE: uncommented so as to not reject messages whenever they are "too large" -- This just continues drawing it anyway. + //if (pos_y < panel_pos_y) // check if the next line can be shown + //{ + // drawfontscale = '1 1 0'; + // return; + //} } } current_msg_pos_y = pos_y; // save starting pos (first line) of the current message @@ -4606,11 +4607,12 @@ void HUD_CenterPrint (void) } else pos_y += fontsize_y * CENTERPRINT_SPACING/2; - if (!autocvar_hud_panel_centerprint_flip && pos_y > panel_pos_y + panel_size_y - fontsize_y) // check if the next line can be shown - { - drawfontscale = '1 1 0'; - return; - } + // NOTE: uncommented so as to not reject messages whenever they are "too large" -- This just continues drawing it anyway. + //if (!autocvar_hud_panel_centerprint_flip && pos_y > panel_pos_y + panel_size_y - fontsize_y) // check if the next line can be shown + //{ + // drawfontscale = '1 1 0'; + // return; + //} } } msg_size = pos_y - msg_size; -- 2.39.2