diff options
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/environment.h b/src/environment.h index 42faf5f6d..1984cf40d 100644 --- a/src/environment.h +++ b/src/environment.h @@ -104,6 +104,11 @@ public: protected: // peer_ids in here should be unique, except that there may be many 0s std::vector<Player*> m_players; + + + /* + * Below: values under m_time_lock + */ // Time of day in milli-hours (0-23999); determines day and night u32 m_time_of_day; // Time of day in 0...1 @@ -114,6 +119,9 @@ protected: // Overriding the day-night ratio is useful for custom sky visuals bool m_enable_day_night_ratio_override; u32 m_day_night_ratio_override; + /* + * Above: values under 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 @@ -127,7 +135,6 @@ protected: bool m_cache_enable_shaders; private: - Mutex m_timeofday_lock; Mutex m_time_lock; }; |