summaryrefslogtreecommitdiff
path: root/src/game/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r--src/game/game.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index fb130d9..e5f32f5 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -131,8 +131,11 @@ void state_t::tick(double now_, double dt_)
uint32_t i;
} u;
- now = now_;
+ if (paused)
+ return;
+
dt = dt_;
+ now += dt;
// FIXME: Is this non-deterministic enough?
u.d = now;