X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fcenterprint.qc;fp=qcsrc%2Fclient%2Fhud%2Fpanel%2Fcenterprint.qc;h=2d96826c83ee2cff272f73464ee9b16c26bd9915;hp=d6b154200eb757dfe753e10111da895bd653444e;hb=ceb0b03a922c70089a4599c8bc77124f6f5c583c;hpb=5ecbee94a0f236f3afc6dd84db22945377363c8c diff --git a/qcsrc/client/hud/panel/centerprint.qc b/qcsrc/client/hud/panel/centerprint.qc index d6b154200e..2d96826c83 100644 --- a/qcsrc/client/hud/panel/centerprint.qc +++ b/qcsrc/client/hud/panel/centerprint.qc @@ -34,7 +34,7 @@ void HUD_CenterPrint_Export(int fh) const int CENTERPRINT_MAX_MSGS = 10; const int CENTERPRINT_MAX_ENTRIES = 50; const float CENTERPRINT_SPACING = 0.5; -const float CENTERPRINT_TITLE_SPACING = 0.8; +const float CENTERPRINT_TITLE_SPACING = 0.35; int cpm_index; string centerprint_messages[CENTERPRINT_MAX_MSGS]; int centerprint_msgID[CENTERPRINT_MAX_MSGS]; @@ -272,16 +272,16 @@ void HUD_CenterPrint() drawcolorcodedstring(pos, centerprint_title, fontsize, 1, DRAWFLAG_NORMAL); if (autocvar_hud_panel_centerprint_flip) - pos.y -= cp_fontsize.y * (CENTERPRINT_TITLE_SPACING / 2); + pos.y -= cp_fontsize.y * CENTERPRINT_TITLE_SPACING; else - pos.y += fontsize.y + (hud_fontsize.y * (CENTERPRINT_TITLE_SPACING / 2)); + pos.y += fontsize.y + (hud_fontsize.y * CENTERPRINT_TITLE_SPACING); drawfill(pos, vec2(width, 1), '1 1 1', 1, DRAWFLAG_NORMAL); if (autocvar_hud_panel_centerprint_flip) - pos.y -= cp_fontsize.y * (CENTERPRINT_TITLE_SPACING / 2); + pos.y -= cp_fontsize.y * CENTERPRINT_TITLE_SPACING; else - pos.y += cp_fontsize.y * (CENTERPRINT_TITLE_SPACING / 2); + pos.y += cp_fontsize.y * CENTERPRINT_TITLE_SPACING; all_messages_expired = false; }