diff options
author | paramat <paramat@users.noreply.github.com> | 2017-09-02 03:18:42 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-09-04 05:10:52 +0100 |
commit | a383eb0eb98ffcc835e17ee847c459edff2b53ec (patch) | |
tree | 1fcf0029037b5f5832ff8ddc1e6579827820d967 /src/environment.cpp | |
parent | ad9786c44b7d09b2d7972884ef5e6791861dd151 (diff) | |
download | minetest-a383eb0eb98ffcc835e17ee847c459edff2b53ec.tar.gz minetest-a383eb0eb98ffcc835e17ee847c459edff2b53ec.tar.bz2 minetest-a383eb0eb98ffcc835e17ee847c459edff2b53ec.zip |
World start time: Add setting for this, default unchanged
Diffstat (limited to 'src/environment.cpp')
-rw-r--r-- | src/environment.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index a5c0fc173..f9de13baa 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -37,6 +37,9 @@ Environment::Environment(IGameDef *gamedef): m_cache_active_block_mgmt_interval = g_settings->getFloat("active_block_mgmt_interval"); m_cache_abm_interval = g_settings->getFloat("abm_interval"); m_cache_nodetimer_interval = g_settings->getFloat("nodetimer_interval"); + + m_time_of_day = g_settings->getU32("world_start_time"); + m_time_of_day_f = (float)m_time_of_day / 24000.0f; } u32 Environment::getDayNightRatio() |