- Set glcycle_t class as active when stat fps is active.

Fixes #122.
This commit is contained in:
Mitchell Richters 2020-08-09 16:39:15 +10:00
parent cf548e055e
commit fb6a58904a

View file

@ -296,6 +296,18 @@ int moveloop()
//
//---------------------------------------------------------------------------
static void checkTimerActive()
{
FStat *stat = FStat::FindStat("fps");
glcycle_t::active = (stat != NULL && stat->isActive());
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool GameTicker()
{
if (ps[myconnectindex].gm == MODE_DEMO)
@ -310,6 +322,8 @@ bool GameTicker()
C_RunDelayedCommands();
checkTimerActive();
gameupdatetime.Reset();
gameupdatetime.Clock();