From d7e0df8bd8065054bf427cf36032a49fa1a37fd0 Mon Sep 17 00:00:00 2001 From: toaster Date: Tue, 9 May 2023 19:11:57 +0100 Subject: [PATCH] Change y coordinate of Song Credit on intermission screen to be along bottom --- src/hu_stuff.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 8b0c5c6a9..8fda4c111 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -2131,17 +2131,24 @@ static void HU_DrawDemoInfo(void) // void HU_DrawSongCredits(void) { - fixed_t x; - fixed_t y = (r_splitscreen ? (BASEVIDHEIGHT/2)-4 : 32) * FRACUNIT; - INT32 bgt; - if (!cursongcredit.def || cursongcredit.trans >= NUMTRANSMAPS) // No def { return; } - bgt = (NUMTRANSMAPS/2) + (cursongcredit.trans / 2); - x = R_InterpolateFixed(cursongcredit.old_x, cursongcredit.x); + fixed_t x = R_InterpolateFixed(cursongcredit.old_x, cursongcredit.x); + fixed_t y; + + if (gamestate == GS_INTERMISSION) + { + y = (BASEVIDHEIGHT - 13) * FRACUNIT; + } + else + { + y = (r_splitscreen ? (BASEVIDHEIGHT/2)-4 : 32) * FRACUNIT; + } + + INT32 bgt = (NUMTRANSMAPS/2) + (cursongcredit.trans / 2); if (bgt < NUMTRANSMAPS) {