Adjust caption pop-in by tics instead of frames

Fixes STJr/SRB2#900 pop-in animation being affected by framerate
This commit is contained in:
Eidolon 2023-01-25 20:44:04 -06:00
parent add018cb83
commit b02707a4ee

View file

@ -621,7 +621,13 @@ void SCR_ClosedCaptions(void)
y = basey-((i + 2)*10);
if (closedcaptions[i].b)
y -= (closedcaptions[i].b--)*vid.dupy;
{
y -= closedcaptions[i].b * vid.dupy;
if (renderisnewtic)
{
closedcaptions[i].b--;
}
}
if (closedcaptions[i].t < CAPTIONFADETICS)
flags |= (((CAPTIONFADETICS-closedcaptions[i].t)/2)*V_10TRANS);