summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/state.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/state.c b/src/state.c
index 5129748..c87d064 100644
--- a/src/state.c
+++ b/src/state.c
@@ -15,7 +15,6 @@ bool stateInit( const char *exePath ) {
state->run = true;
state->resolution = (Vector2){ 1024, 720 };
state->luaState = NULL;
- state->targetFPS = 60;
state->textureSource = TEXTURE_SOURCE_TEXTURE;
/* Images. */
state->imageAlloc = ALLOC_PAGE_SIZE;
@@ -106,13 +105,11 @@ bool stateInit( const char *exePath ) {
state->hasWindow = false;
state->run = false;
}
- else {
- SetTargetFPS( state->targetFPS );
+ if ( state->run ) {
+ InitAudioDevice();
+ state->run = luaInit();
}
- InitAudioDevice();
- state->run = luaInit();
-
return state->run;
}