- Exhumed: fixed time values for Ramses text scroll.

This commit is contained in:
Christoph Oelckers 2020-09-06 09:10:45 +02:00
parent 72771aeb40
commit 0b399fb384
2 changed files with 2 additions and 3 deletions

View file

@ -884,7 +884,6 @@ bool TextOverlay::AdvanceCinemaText(double clock)
if (nHeight + nCrawlY > 0 || CDplaying())
{
nCrawlY-= (clock - lastclock) / 15.; // do proper interpolation.
Printf("Scroll: crawlY = %f, clock = %f, time = %f, real time = %u\n", nCrawlY, clock, lastclock - clock, I_msTime());
lastclock = clock;
return true;
}

View file

@ -423,7 +423,7 @@ void DrawView(double smoothRatio, bool sceneonly)
if (bSubTitles)
{
subtitleOverlay.Start(I_GetTimeNS());
subtitleOverlay.Start(I_GetTimeNS() * (120. / 1'000'000'000));
if (currentLevel->levelNumber == 1)
subtitleOverlay.ReadyCinemaText(1);
else
@ -433,7 +433,7 @@ void DrawView(double smoothRatio, bool sceneonly)
}
else if (nHeadStage == 5)
{
if ((bSubTitles && !subtitleOverlay.AdvanceCinemaText(I_GetTimeNS())) || inputState.CheckAllInput())
if ((bSubTitles && !subtitleOverlay.AdvanceCinemaText(I_GetTimeNS() * (120. / 1'000'000'000))) || inputState.CheckAllInput())
{
inputState.ClearAllInput();
EndLevel = 1;