aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index a9cc2fa..8e154fb 100644
--- a/main.cpp
+++ b/main.cpp
@@ -494,7 +494,8 @@ void mainLoop(void){
if(++debugDiv==20){
debugDiv=0;
- fps=1000/deltaTime;
+ if(deltaTime)
+ fps=1000/deltaTime;
}else if(!(debugDiv%10)){
debugY = player->loc.y;
}