diff options
| author | jussi | 2022-06-21 12:36:22 +0300 |
|---|---|---|
| committer | jussi | 2022-06-21 12:36:22 +0300 |
| commit | 36baf4c1222aee409bb62be9770798bfa7fdd302 (patch) | |
| tree | 0b2722bf160178db06bb94df68fd5244affc8986 /src/state.c | |
| parent | 6bac1a2c6364886a482530a0ef4cf849ae468806 (diff) | |
| download | reilua-enhanced-36baf4c1222aee409bb62be9770798bfa7fdd302.tar.gz reilua-enhanced-36baf4c1222aee409bb62be9770798bfa7fdd302.tar.bz2 reilua-enhanced-36baf4c1222aee409bb62be9770798bfa7fdd302.zip | |
Removed autoset fps.
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 9 |
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; } |
