restrict frame rate adjustments to in-pv and attract demos only

This commit is contained in:
somewhatlurker
2019-09-06 03:24:04 +10:00
parent 2cb5004c47
commit 7b35907406
2 changed files with 2 additions and 1 deletions
@@ -191,7 +191,7 @@ namespace TLAC::Components
*aetFrameDuration = 1.0f / GetGameFrameRate();
bool inGame = *(GameState*)CURRENT_GAME_STATE_ADDRESS == GS_GAME;
bool inGame = *(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_GAME_MAIN || *(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_DEMO;
if (inGame)
{
// enable dynamic framerate