Added silent line teleport prediction
- Allow activation of line teleport specials during prediction - Moved prediction functions to improve uncapped framerates
This commit is contained in:
parent
ad0a1ad865
commit
53b6e7d4d5
7 changed files with 107 additions and 13 deletions
|
|
@ -729,6 +729,46 @@ void R_ClearPastViewer (AActor *actor)
|
|||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// R_RebuildViewInterpolation
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
void R_RebuildViewInterpolation(player_t *player)
|
||||
{
|
||||
InterpolationViewer *iview;
|
||||
if (NoInterpolateView)
|
||||
{
|
||||
if (player != NULL && player->camera != NULL)
|
||||
{
|
||||
iview = FindPastViewer(player->camera);
|
||||
}
|
||||
|
||||
if (iview == NULL)
|
||||
return;
|
||||
|
||||
NoInterpolateView = false;
|
||||
iview->oviewx = iview->nviewx;
|
||||
iview->oviewy = iview->nviewy;
|
||||
iview->oviewz = iview->nviewz;
|
||||
iview->oviewpitch = iview->nviewpitch;
|
||||
iview->oviewangle = iview->nviewangle;
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// R_GetViewInterpolationStatus
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
bool R_GetViewInterpolationStatus()
|
||||
{
|
||||
return NoInterpolateView;
|
||||
}
|
||||
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// R_SetupFrame
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue