aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-10-20 08:14:01 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-10-20 08:14:01 -0400
commit1a4780bad1cc40b43ebe6d93baba0f89572194d4 (patch)
tree13751f28b667a778c6b6e2c268384ad1133be051 /main.cpp
parenta9c145a4694d23ad6e9ee1e9816a0e7e4aeddfe2 (diff)
better pausing
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 c05a787..fad1315 100644
--- a/main.cpp
+++ b/main.cpp
@@ -137,7 +137,8 @@ int main(int argc, char *argv[])
for (auto& e : clone)
game::events.emit<MainSDLEvent>(e);
- game::engine.update(game::time::getDeltaTime());
+ if (!game::time::isPaused())
+ game::engine.update(game::time::getDeltaTime());
std::this_thread::sleep_for(1ms);
});