demo: Centralize options override

This commit is contained in:
obligaron 2021-08-09 20:23:13 +02:00 committed by Anders Jenbo
commit 26e61b363b
5 changed files with 24 additions and 19 deletions

View file

@ -7,7 +7,6 @@
#include <SDL.h>
#include "engine/demomode.h"
#include "engine.h"
#include "options.h"
#include "storm/storm.h"
@ -334,7 +333,7 @@ void RenderPresent()
}
SDL_RenderPresent(renderer);
if (!sgOptions.Graphics.bVSync && !demo::IsTimedemo()) {
if (!sgOptions.Graphics.bVSync) {
LimitFrameRate();
}
} else {