Cleanup in content_mapblock (#5746)
[oweals/minetest.git] / src / remoteplayer.h
index b9d9c74f540b0ac168ec5517e22d3863a2007e21..ee0d625b6b32fbf8e1513251bf4249409d51284d 100644 (file)
@@ -85,19 +85,21 @@ public:
        }
 
        void setSky(const video::SColor &bgcolor, const std::string &type,
-                       const std::vector<std::string> &params)
+                       const std::vector<std::string> &params, bool &clouds)
        {
                m_sky_bgcolor = bgcolor;
                m_sky_type = type;
                m_sky_params = params;
+               m_sky_clouds = clouds;
        }
 
        void getSky(video::SColor *bgcolor, std::string *type,
-                       std::vector<std::string> *params)
+                       std::vector<std::string> *params, bool *clouds)
        {
                *bgcolor = m_sky_bgcolor;
                *type = m_sky_type;
                *params = m_sky_params;
+               *clouds = m_sky_clouds;
        }
 
        void setCloudParams(const CloudParams &cloud_params)
@@ -105,10 +107,7 @@ public:
                m_cloud_params = cloud_params;
        }
 
-       const CloudParams &getCloudParams() const
-       {
-               return m_cloud_params;
-       }
+       const CloudParams &getCloudParams() const { return m_cloud_params; }
 
        bool checkModified() const { return m_dirty || inventory.checkModified(); }
 
@@ -165,6 +164,8 @@ private:
        std::string m_sky_type;
        video::SColor m_sky_bgcolor;
        std::vector<std::string> m_sky_params;
+       bool m_sky_clouds;
+
        CloudParams m_cloud_params;
 };