aboutsummaryrefslogtreecommitdiff
path: root/src/GameLoop.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-22 14:58:38 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-22 14:58:38 +0700
commitf673971c50ca968d3ddb16b780a389f5627418e2 (patch)
tree81bdbc0cd9ae7ae232b0a0f1c9842927cb82e68f /src/GameLoop.cpp
parent1fda9269f0c2d505368abf3ab9ca5ef88886b7e9 (diff)
downloadblackshades-f673971c50ca968d3ddb16b780a389f5627418e2.tar.gz
Fix possible division by zero and clean up
Diffstat (limited to 'src/GameLoop.cpp')
-rw-r--r--src/GameLoop.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/GameLoop.cpp b/src/GameLoop.cpp
index fe7292f..3a9e8a0 100644
--- a/src/GameLoop.cpp
+++ b/src/GameLoop.cpp
@@ -346,6 +346,7 @@ void Game::EventLoop( void )
int colaccuracy,i;
GLfloat oldmult;
gQuit = false;
+ framespersecond = 60;
while ( gQuit == false ) {
ProcessSDLEvents(this);
start=TimerGetTime(&theTimer);