- Exhumed: Directly inline interpfrac test into gi->Render().

This commit is contained in:
Mitchell Richters 2023-03-25 18:49:22 +11:00
parent 32237421c9
commit 12b4f68f24
2 changed files with 2 additions and 12 deletions

View file

@ -262,11 +262,6 @@ void DrawClock()
//
//---------------------------------------------------------------------------
double calc_interpfrac()
{
return bRecord || bPlayback || nFreeze != 0 || paused || cl_capfps || !cl_interpolate || EndLevel ? 1. : I_GetTimeFrac();
}
void DoGameOverScene(bool finallevel)
{
// todo: make these customizable later.

View file

@ -55,11 +55,8 @@ int nBestLevel;
void RunCinemaScene(int num);
void DrawClock();
double calc_interpfrac();
void DoTitle(CompletionFunc completion);
//---------------------------------------------------------------------------
//
//
@ -77,11 +74,9 @@ void GameInterface::Render()
DrawClock();
}
double const interpfrac = calc_interpfrac();
const double interpfrac = bRecord || bPlayback || nFreeze != 0 || paused || cl_capfps || !cl_interpolate || EndLevel ? 1. : I_GetTimeFrac();
DrawView(interpfrac);
if (nFreeze != 2) // Hide when Ramses is talking.
{
DrawStatusBar();