mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 01:01:45 +00:00
Reset view interp in preticker
This commit is contained in:
parent
73930c655b
commit
d511857675
3 changed files with 3 additions and 14 deletions
11
src/g_game.c
11
src/g_game.c
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue