Reset view interp in preticker

This commit is contained in:
Eidolon 2022-05-05 19:43:55 -05:00
parent 73930c655b
commit d511857675
3 changed files with 3 additions and 14 deletions

View file

@ -2367,11 +2367,6 @@ void G_Ticker(boolean run)
F_TextPromptTicker();
AM_Ticker();
HU_Ticker();
if (run)
{
R_UpdateViewInterpolation();
}
break;
@ -2426,14 +2421,8 @@ void G_Ticker(boolean run)
case GS_TITLESCREEN:
if (titlemapinaction)
{
P_Ticker(run);
if (run)
{
R_UpdateViewInterpolation();
}
// then intentionally fall through
}
/* FALLTHRU */
case GS_WAITINGPLAYERS:
F_MenuPresTicker(run);

View file

@ -7678,9 +7678,6 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
P_MapEnd(); // just in case MapLoad modifies tmthing
}
R_ResetViewInterpolation();
R_ResetViewInterpolation();
// No render mode or reloading gamestate, stop here.
if (rendermode == render_none || reloadinggamestate)
return true;

View file

@ -770,6 +770,7 @@ void P_Ticker(boolean run)
if (run)
{
R_UpdateLevelInterpolators();
R_UpdateViewInterpolation();
}
P_MapEnd();
@ -833,6 +834,8 @@ void P_PreTicker(INT32 frames)
LUA_HOOK(PostThinkFrame);
R_UpdateLevelInterpolators();
R_UpdateViewInterpolation();
R_ResetViewInterpolation();
P_MapEnd();
}