move secret message higher, don't disable crosshair (#1607)

This commit is contained in:
Roman Fomin 2024-03-19 16:10:25 +07:00 committed by GitHub
parent e14506c312
commit 57c2b98999
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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