summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index a6eda99..ddf9a75 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -178,7 +178,11 @@ void state_t::tick(double now_, double dt_)
if (paused)
return;
- dt = dt_;
+ if (dt > 0.05)
+ dt = 0.05;
+ else
+ dt = dt_;
+
now += dt;
// FIXME: Is this non-deterministic enough?