]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/environment.h
Randomwalk caves: Add parameters for number, proportion flooded. Allow small caves...
[dragonfireclient.git] / src / environment.h
index bafb3b1faa2706bf9401c8c1cd4453f810d23c71..f568ba2287e42370e988eda05317ef25619bdebc 100644 (file)
@@ -106,11 +106,11 @@ class Environment
 
        /*
         * 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;
@@ -122,7 +122,7 @@ class Environment
        std::atomic<u32> m_day_count;
        /*
         * Above: values managed by m_time_lock
-       */
+        */
 
        /* TODO: Add a callback function so these can be updated when a setting
         *       changes.  At this point in time it doesn't matter (e.g. /set