mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
Lengthen credits for msuic parity
This commit is contained in:
parent
a3549cc8f2
commit
8f2d81ec74
1 changed files with 4 additions and 5 deletions
|
@ -1333,7 +1333,7 @@ void F_StartCredits(void)
|
||||||
S_StopMusic();
|
S_StopMusic();
|
||||||
S_StopSounds();
|
S_StopSounds();
|
||||||
|
|
||||||
S_ChangeMusicInternal("_creds", false);
|
S_ChangeMusicInternal("_creds", true);
|
||||||
|
|
||||||
finalecount = 0;
|
finalecount = 0;
|
||||||
animtimer = 0;
|
animtimer = 0;
|
||||||
|
@ -1344,7 +1344,7 @@ void F_CreditDrawer(void)
|
||||||
{
|
{
|
||||||
UINT16 i;
|
UINT16 i;
|
||||||
INT16 zagpos = (timetonext - finalecount - animtimer) % 32;
|
INT16 zagpos = (timetonext - finalecount - animtimer) % 32;
|
||||||
fixed_t y = (80<<FRACBITS) - 5*(animtimer<<FRACBITS)/8;
|
fixed_t y = (80<<FRACBITS) - (animtimer<<FRACBITS>>1);
|
||||||
|
|
||||||
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31);
|
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31);
|
||||||
|
|
||||||
|
@ -1394,7 +1394,7 @@ void F_CreditTicker(void)
|
||||||
{
|
{
|
||||||
// "Simulate" the drawing of the credits so that dedicated mode doesn't get stuck
|
// "Simulate" the drawing of the credits so that dedicated mode doesn't get stuck
|
||||||
UINT16 i;
|
UINT16 i;
|
||||||
fixed_t y = (80<<FRACBITS) - 5*(animtimer<<FRACBITS)/8;
|
fixed_t y = (80<<FRACBITS) - (animtimer<<FRACBITS>>1);
|
||||||
|
|
||||||
// Calculate credits height to display art properly
|
// Calculate credits height to display art properly
|
||||||
if (credits_height == 0)
|
if (credits_height == 0)
|
||||||
|
@ -1408,8 +1408,7 @@ void F_CreditTicker(void)
|
||||||
default: credits_height += 12; break;
|
default: credits_height += 12; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
credits_height = 4*8*credits_height/5/5; // account for scroll speed (4/5 accounts for patch drawing, inverse 5/8 accounts for text scroll)
|
credits_height = 131*credits_height/80; // account for scroll speeds. This is a guess now, so you may need to update this if you change the credits length.
|
||||||
//credits_height += 280; // account for starting offset
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw credits text on top
|
// Draw credits text on top
|
||||||
|
|
Loading…
Reference in a new issue