]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/mapnode.h
Areastore: fix "attempt to index a number value"
[dragonfireclient.git] / src / mapnode.h
index 82c53e7d4474b4fc86a9e11fe14e093f5f841cb8..7cc25c60cfabde4b70036e1b80667ad67f69ebad 100644 (file)
@@ -192,6 +192,14 @@ struct MapNode
        }
 
        void setLight(enum LightBank bank, u8 a_light, INodeDefManager *nodemgr);
+
+       /**
+        * Check if the light value for night differs from the light value for day.
+        *
+        * @return If the light values are equal, returns true; otherwise false
+        */
+       bool isLightDayNightEq(INodeDefManager *nodemgr) const;
+
        u8 getLight(enum LightBank bank, INodeDefManager *nodemgr) const;
 
        /**
@@ -209,7 +217,7 @@ struct MapNode
         * @pre f != NULL
         * @pre f->param_type == CPT_LIGHT
         */
-       u8 getLightNoChecks(LightBank bank, const ContentFeatures *f);
+       u8 getLightNoChecks(LightBank bank, const ContentFeatures *f) const;
 
        bool getLightBanks(u8 &lightday, u8 &lightnight, INodeDefManager *nodemgr) const;