From: Samual Date: Mon, 29 Aug 2011 04:23:51 +0000 (-0400) Subject: Bugfix for 0.5: Basically just allow drawing of larger centerprints ANYWAY instead... X-Git-Tag: xonotic-v0.5.0~33^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5112233ca99131fa64eba294fe562be0669ccdd3;p=xonotic%2Fxonotic-data.pk3dir.git 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. --- 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;