- do not call renderer code directly to reset the view interpolation

The playsim really has no idea what the renderer is supposed to do here and the current system has some serious issues that eventually need addressing. So it is better to just set a flag that an actor needs to have its view interpolation reset if being used as a camera and let the render code deal with it.

This will keep the playsim clean of future changes to this feature.
This commit is contained in:
Christoph Oelckers 2019-02-01 01:37:09 +01:00
commit de24fc2c88
6 changed files with 12 additions and 19 deletions

View file

@ -815,8 +815,9 @@ void R_SetupFrame (FRenderViewpoint &viewpoint, FViewWindow &viewwindow, AActor
player = viewpoint.camera->player;
}
if (iview->otic == -1 || r_NoInterpolate)
if (iview->otic == -1 || r_NoInterpolate || (viewpoint.camera->renderflags & RF_NOINTERPOLATEVIEW))
{
viewpoint.camera->renderflags &= ~RF_NOINTERPOLATEVIEW;
R_ResetViewInterpolation ();
iview->otic = nowtic;
}