From 57c2b98999c90058b15d42388264a87357faee1e Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Tue, 19 Mar 2024 16:10:25 +0700 Subject: [PATCH] move secret message higher, don't disable crosshair (#1607) --- src/hu_stuff.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index a643b285..db82b74f 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -140,24 +140,26 @@ static hu_multiline_t w_rate; #define MAX_WIDGETS_D 5 #define MAX_WIDGETS_B 12 +#define W_SECRET_Y ((SCREENHEIGHT - ST_HEIGHT) / 4) + static hu_widget_t doom_widgets[MAX_HUDS][MAX_WIDGETS_D] = { { {&w_title, align_direct, align_bottom, 0}, {&w_message, align_direct, align_top, 0}, {&w_chat, align_direct, align_top, 0}, - {&w_secret, align_center, align_direct, 0, 84}, + {&w_secret, align_center, align_direct, 0, W_SECRET_Y}, {NULL} }, { {&w_title, align_direct, align_bottom, 0}, {&w_message, align_direct, align_top, 0}, {&w_chat, align_direct, align_top, 0}, - {&w_secret, align_center, align_direct, 0, 84}, + {&w_secret, align_center, align_direct, 0, W_SECRET_Y}, {NULL} }, { {&w_title, align_direct, align_bottom, 0}, {&w_message, align_direct, align_top, 0}, {&w_chat, align_direct, align_top, 0}, - {&w_secret, align_center, align_direct, 0, 84}, + {&w_secret, align_center, align_direct, 0, W_SECRET_Y}, {NULL} } }; @@ -1438,8 +1440,7 @@ void HU_DrawCrosshair(void) if (plr->playerstate != PST_LIVE || automapactive || menuactive || - paused || - secret_on) + paused) { return; }