diff options
author | Mattes D <github@xoft.cz> | 2017-01-19 22:45:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-19 22:45:23 +0100 |
commit | 97980d11038e57faa905a27977545fb77ff2c5bd (patch) | |
tree | 05bfd2f22ce126644594e00a02cfb30cede35153 /src/World.h | |
parent | World: Removed LineBlockTracer test code. (#3555) (diff) | |
download | cuberite-97980d11038e57faa905a27977545fb77ff2c5bd.tar cuberite-97980d11038e57faa905a27977545fb77ff2c5bd.tar.gz cuberite-97980d11038e57faa905a27977545fb77ff2c5bd.tar.bz2 cuberite-97980d11038e57faa905a27977545fb77ff2c5bd.tar.lz cuberite-97980d11038e57faa905a27977545fb77ff2c5bd.tar.xz cuberite-97980d11038e57faa905a27977545fb77ff2c5bd.tar.zst cuberite-97980d11038e57faa905a27977545fb77ff2c5bd.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/World.h b/src/World.h index 591b61911..5957f5432 100644 --- a/src/World.h +++ b/src/World.h @@ -897,8 +897,11 @@ private: bool m_BroadcastAchievementMessages; bool m_IsDaylightCycleEnabled; - // std::chrono::milliseconds is guaranteed to be good for 292 years by the standard. - std::chrono::milliseconds m_WorldAge; + + /** The age of the world. + Monotonic, always increasing each game tick, persistent across server restart. */ + std::chrono::milliseconds m_WorldAge; + std::chrono::milliseconds m_TimeOfDay; cTickTimeLong m_LastTimeUpdate; // The tick in which the last time update has been sent. cTickTimeLong m_LastChunkCheck; // The last WorldAge (in ticks) in which unloading and possibly saving was triggered |