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 committed by toaster
parent 915bf83172
commit 23f9d8e924

View file

@ -675,7 +675,13 @@ void SCR_ClosedCaptions(void)
y = basey-((i + 2)*10); y = basey-((i + 2)*10);
if (closedcaptions[i].b) 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) if (closedcaptions[i].t < CAPTIONFADETICS)
flags |= (((CAPTIONFADETICS-closedcaptions[i].t)/2)*V_10TRANS); flags |= (((CAPTIONFADETICS-closedcaptions[i].t)/2)*V_10TRANS);