mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-30 20:51:02 +00:00
- Exhumed: Directly inline interpfrac test into gi->Render()
.
This commit is contained in:
parent
32237421c9
commit
12b4f68f24
2 changed files with 2 additions and 12 deletions
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue