]> git.lizzy.rs Git - minetest.git/blobdiff - src/mapnode.cpp
Make limiting of the reflow liquids queue size optional
[minetest.git] / src / mapnode.cpp
index fbf0ac8c90d39c3313194641a8e4bc39eaea0829..4e8feb047762cdee2a377ba0cee5d6911ecdf21a 100644 (file)
@@ -88,6 +88,12 @@ u8 MapNode::getLight(enum LightBank bank, INodeDefManager *nodemgr) const
        return MYMAX(f.light_source, light);
 }
 
+u8 MapNode::getLightNoChecks(enum LightBank bank, const ContentFeatures *f)
+{
+       return MYMAX(f->light_source,
+                    bank == LIGHTBANK_DAY ? param1 & 0x0f : (param1 >> 4) & 0x0f);
+}
+
 bool MapNode::getLightBanks(u8 &lightday, u8 &lightnight, INodeDefManager *nodemgr) const
 {
        // Select the brightest of [light source, propagated light]