Fix interpolation going missing for freecam
This commit is contained in:
1 parent
73e968c156
commit
b3817cc093
5 files changed
+7
-6
No files matched your search
+1
-1
@@ -448,7 +448,7 @@ static boolean D_Display(void)
|
||||
|
||||
if (rendermode == render_soft && !splitscreen)
|
||||
{
|
||||
R_InterpolateViewRollAngle(R_GetTimeFrac(RTF_LEVEL));
|
||||
R_InterpolateViewRollAngle(R_GetTimeFrac(RTF_CAMERA));
|
||||
R_CheckViewMorph();
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1073,7 +1073,7 @@ static void K_initKartHUD(void)
|
||||
|
||||
// K_GetScreenCoords needs the right view* variables
|
||||
R_SetViewContext(stplyrnum);
|
||||
R_InterpolateView(R_GetTimeFrac(RTF_LEVEL), !cv_uncappedhud.value);
|
||||
R_InterpolateView(R_GetTimeFrac(RTF_CAMERA), !cv_uncappedhud.value);
|
||||
}
|
||||
|
||||
UINT8 K_GetHudColor(void)
|
||||
|
||||
+3
-3
@@ -113,11 +113,11 @@ boolean R_UsingFrameInterpolation(void)
|
||||
// just for the sake of the intermission background...
|
||||
fixed_t R_GetTimeFrac(timefrac_e level)
|
||||
{
|
||||
// level interp. pauses if level isn't ticking
|
||||
if (level <= RTF_LEVEL && gamestate != GS_LEVEL) // !G_GamestateUsesLevel()
|
||||
// level interp. pauses if level isn't active
|
||||
if ((level <= RTF_LEVEL || level == RTF_CAMERA) && gamestate != GS_LEVEL) // !G_GamestateUsesLevel()
|
||||
return FRACUNIT;
|
||||
|
||||
// intermission interp. keeps interp even if level isn't ticking, but pauses if game is paused
|
||||
// intermission interp. pauses if game is paused
|
||||
if (level <= RTF_INTER && (paused || P_AutoPause()))
|
||||
return FRACUNIT;
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ typedef enum
|
||||
{
|
||||
RTF_LEVEL,
|
||||
RTF_INTER,
|
||||
RTF_CAMERA,
|
||||
RTF_MENU,
|
||||
} timefrac_e;
|
||||
|
||||
|
||||
+1
-1
@@ -1088,7 +1088,7 @@ static void R_SetupCommonFrame(player_t * player, sector_t * sector)
|
||||
else
|
||||
newview->sector = R_PointInSubsectorFast(newview->x, newview->y)->sector;
|
||||
|
||||
R_InterpolateView(R_GetTimeFrac(RTF_LEVEL), false);
|
||||
R_InterpolateView(R_GetTimeFrac(RTF_CAMERA), false);
|
||||
}
|
||||
|
||||
static void R_SetupAimingFrame(player_t *player, camera_t *thiscam)
|
||||
|
||||
Reference in new issue
Block a user