summaryrefslogtreecommitdiff
path: root/games-arcade/bomns/files/bomns-0.99.2-fpe.patch
blob: 273212a4f6e19635f3b584eef876158a53c99954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/src/bomns.cpp
+++ b/src/bomns.cpp
@@ -432,7 +432,10 @@
       if(g_bShowFps)
       {
         dwFpsTimer = SDL_GetTicks() - dwFpsTimer;
-        nFps = 1000l / dwFpsTimer;
+	if (dwFpsTimer)
+	  nFps = 1000l / dwFpsTimer;
+	else
+	  nFps = 1000l;
       }