]> git.lizzy.rs Git - minetest.git/blobdiff - src/environment.h
Fix memory leaks due to messed up memory handling for particles as well as their...
[minetest.git] / src / environment.h
index e8ae044e30ce0d32bab7ffbeebcb03acddf2cded..03c21b08ccff55aad7963da7e003876ddf4f8d59 100644 (file)
@@ -121,6 +121,17 @@ class Environment
        // Overriding the day-night ratio is useful for custom sky visuals
        bool m_enable_day_night_ratio_override;
        u32 m_day_night_ratio_override;
+
+       /* 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
+        *       is documented to change server settings only)
+        *
+        * TODO: Local caching of settings is not optimal and should at some stage
+        *       be updated to use a global settings object for getting thse values
+        *       (as opposed to the this local caching). This can be addressed in
+        *       a later release.
+        */
+       bool m_cache_enable_shaders;
        
 private:
        JMutex m_lock;
@@ -259,6 +270,7 @@ class ServerEnvironment : public Environment
                inside a radius around a position
        */
        void getAddedActiveObjects(v3s16 pos, s16 radius,
+                       s16 player_radius,
                        std::set<u16> &current_objects,
                        std::set<u16> &added_objects);
 
@@ -267,6 +279,7 @@ class ServerEnvironment : public Environment
                inside a radius around a position
        */
        void getRemovedActiveObjects(v3s16 pos, s16 radius,
+                       s16 player_radius,
                        std::set<u16> &current_objects,
                        std::set<u16> &removed_objects);