Place song credits in credits on the bottom

So it doesn't overlap the game logo.
This commit is contained in:
Eidolon 2025-10-27 11:33:15 -05:00
parent c2c3ae63a7
commit 2aecf89af7
3 changed files with 7 additions and 0 deletions

View file

@ -898,6 +898,7 @@ void HU_TickSongCredits(void)
cursongcredit.x = cursongcredit.old_x = 0; cursongcredit.x = cursongcredit.old_x = 0;
cursongcredit.anim = 0; cursongcredit.anim = 0;
cursongcredit.trans = NUMTRANSMAPS; cursongcredit.trans = NUMTRANSMAPS;
cursongcredit.use_credits_offset = false;
return; return;
} }
@ -1987,6 +1988,10 @@ void HU_DrawSongCredits(void)
{ {
y = (BASEVIDHEIGHT - 13) * FRACUNIT; y = (BASEVIDHEIGHT - 13) * FRACUNIT;
} }
else if (cursongcredit.use_credits_offset)
{
y = (BASEVIDHEIGHT - 13) * FRACUNIT;
}
else if (gamestate == GS_MENU) else if (gamestate == GS_MENU)
{ {
y = 30 * FRACUNIT; y = 30 * FRACUNIT;

View file

@ -2452,6 +2452,7 @@ void S_ShowMusicCredit(void)
cursongcredit.anim = 5*TICRATE; cursongcredit.anim = 5*TICRATE;
cursongcredit.x = cursongcredit.old_x = 0; cursongcredit.x = cursongcredit.old_x = 0;
cursongcredit.trans = NUMTRANSMAPS; cursongcredit.trans = NUMTRANSMAPS;
cursongcredit.use_credits_offset = (gamestate == GS_CREDITS || (demo.playback && demo.attract == DEMO_ATTRACT_CREDITS));
} }
void S_StopMusicCredit(void) void S_StopMusicCredit(void)

View file

@ -208,6 +208,7 @@ extern struct cursongcredit
UINT8 trans; UINT8 trans;
fixed_t x; fixed_t x;
fixed_t old_x; fixed_t old_x;
boolean use_credits_offset;
} cursongcredit; } cursongcredit;
// For menu, always appears // For menu, always appears