- Exhumed: Properly fix interpolation issues when at the end of the level instead of trying to back up everything.

Revert "- Exhumed: Don't force the framerate to reduce to ticrate at end of each level, instead interpolate player's position to prevent draw errors."

This reverts commit 57d54a2105.

Revert "- Exhumed: Extend 57d54a2105 to back up the player's `bobangle` variable as well at the map's end."

This reverts commit 520c03b4f1.

Revert "- Exhumed: Extend 520c03b4f1 to back up the player's `totalvel` variable as well at the map's end."

This reverts commit 1446486871.
This commit is contained in:
Mitchell Richters 2022-02-20 20:35:22 +11:00
parent f1859c69f0
commit 009c03f430

View file

@ -247,7 +247,7 @@ void DrawClock()
double calc_smoothratio()
{
if (bRecord || bPlayback || nFreeze != 0 || paused || cl_capfps || !cl_interpolate)
if (bRecord || bPlayback || nFreeze != 0 || paused || cl_capfps || !cl_interpolate || EndLevel)
return MaxSmoothRatio;
return I_GetTimeFrac() * MaxSmoothRatio;
@ -463,9 +463,6 @@ void GameInterface::Ticker()
PlayLocalSound(StaticSound[59], 0, true, CHANF_UI);
if (EndLevel > 1) EndLevel--;
PlayerList[nLocalPlayer].pActor->backuppos();
PlayerList[nLocalPlayer].ototalvel = PlayerList[nLocalPlayer].totalvel;
obobangle = bobangle;
int flash = 7 - abs(EndLevel - 7);
videoTintBlood(flash * 30, flash * 30, flash * 30);
if (EndLevel == 1)