1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

World start time: Add setting for this, default unchanged

This commit is contained in:
paramat 2017-09-02 03:18:42 +01:00 committed by paramat
parent ad9786c44b
commit a383eb0eb9
4 changed files with 11 additions and 4 deletions

View file

@ -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()