diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-03-30 17:37:30 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-03-30 17:37:30 +0200 |
commit | e267f6c8e567da53f12140b33d663afacf499277 (patch) | |
tree | 44b52a73078b7f9310978708b6cb75c2f6d66ff9 /src | |
parent | 6966908022e36df9fb4c5e2233603a6fef18e97d (diff) |
Initialize game::state_t's time.
Diffstat (limited to 'src')
-rw-r--r-- | src/common.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.hpp b/src/common.hpp index 8c2f21b..b4c16c6 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -258,7 +258,7 @@ namespace game { std::unordered_set<entity_t*> awake_entities; std::unordered_set<unit_t*> selected_units; - ntime_t time; // game time + ntime_t time = 0; // game time double now, dt; // FIXME: refactor the code, use ntime_t everywhere // frame timing data (game runs at a different frequency than the renderer) |