mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 20:40:47 +00:00
- handle r_NoInterpolate in Blood's ticker so that the game isn't locked to 30 fps.
This commit is contained in:
parent
c5636e9917
commit
b21f49a1e1
1 changed files with 81 additions and 79 deletions
|
@ -261,6 +261,15 @@ static void commonTicker()
|
|||
FireProcess();
|
||||
ClearBitString(gotpic, 2342);
|
||||
}
|
||||
// This is single player only.
|
||||
if (gameRestart)
|
||||
{
|
||||
gameRestart = false;
|
||||
levelRestart();
|
||||
gamestate = GS_LEVEL;
|
||||
return;
|
||||
}
|
||||
|
||||
if (gStartNewGame)
|
||||
{
|
||||
auto sng = gStartNewGame;
|
||||
|
@ -321,19 +330,9 @@ void GameInterface::Ticker()
|
|||
if (newweap > 0 && newweap < WeaponSel_MaxBlood) gPlayer[i].newWeapon = newweap;
|
||||
}
|
||||
|
||||
// This is single player only.
|
||||
if (gameRestart)
|
||||
{
|
||||
gameRestart = false;
|
||||
levelRestart();
|
||||
return;
|
||||
}
|
||||
viewClearInterpolations();
|
||||
if (!(paused || (gGameOptions.nGameType == 0 && M_Active())))
|
||||
{
|
||||
if (paused || (gGameOptions.nGameType == 0 && M_Active()))
|
||||
return;
|
||||
}
|
||||
|
||||
thinktime.Reset();
|
||||
thinktime.Clock();
|
||||
for (int i = connecthead; i >= 0; i = connectpoint2[i])
|
||||
|
@ -418,6 +417,9 @@ void GameInterface::Ticker()
|
|||
ShowSummaryScreen();
|
||||
}
|
||||
}
|
||||
r_NoInterpolate = false;
|
||||
}
|
||||
else r_NoInterpolate = true;
|
||||
commonTicker();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue