diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-10-20 08:14:01 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-10-20 08:14:01 -0400 |
commit | 1a4780bad1cc40b43ebe6d93baba0f89572194d4 (patch) | |
tree | 13751f28b667a778c6b6e2c268384ad1133be051 /main.cpp | |
parent | a9c145a4694d23ad6e9ee1e9816a0e7e4aeddfe2 (diff) |
better pausing
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); }); |