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; }