summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-21 17:54:33 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-21 17:54:33 +0200
commit076f69f12ba4000a9c307e803e05827d037d1ff6 (patch)
treeb6b04c8fafe3131533bc0a6e3c77c38ab32427da /src
parente72e7405b4b250a9c61f1820a313acba2800fa11 (diff)
Start the game with time = 1.
Diffstat (limited to 'src')
-rw-r--r--src/common.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.hpp b/src/common.hpp
index 54d83f8..0064c2e 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -308,7 +308,7 @@ namespace game {
// Some deletes have to be deferred to the next frame.
std::unordered_set<entity_t*> deletion_list;
- ntime_t time = 0; // game time
+ ntime_t time = 1; // 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)