summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-09-02 03:18:42 +0100
committerparamat <mat.gregory@virginmedia.com>2017-09-04 05:10:52 +0100
commita383eb0eb98ffcc835e17ee847c459edff2b53ec (patch)
tree1fcf0029037b5f5832ff8ddc1e6579827820d967 /src/environment.h
parentad9786c44b7d09b2d7972884ef5e6791861dd151 (diff)
downloadminetest-a383eb0eb98ffcc835e17ee847c459edff2b53ec.tar.gz
minetest-a383eb0eb98ffcc835e17ee847c459edff2b53ec.tar.bz2
minetest-a383eb0eb98ffcc835e17ee847c459edff2b53ec.zip
World start time: Add setting for this, default unchanged
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/environment.h b/src/environment.h
index bafb3b1fa..1a1debcb9 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -107,10 +107,10 @@ protected:
/*
* Below: values managed by m_time_lock
*/
- // Time of day in milli-hours (0-23999); determines day and night
- u32 m_time_of_day = 5250;
- // Time of day in 0...1; start 5:15am unless overridden by game
- float m_time_of_day_f = 5250.0f / 24000.0f;
+ // Time of day in milli-hours (0-23999), determines day and night
+ u32 m_time_of_day;
+ // Time of day in 0...1
+ float m_time_of_day_f;
// Stores the skew created by the float -> u32 conversion
// to be applied at next conversion, so that there is no real skew.
float m_time_conversion_skew = 0.0f;