demo: Centralize options override
This commit is contained in:
parent
77f9bded9e
commit
26e61b363b
5 changed files with 24 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue