]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix param2 set to 240 if liquid source was renewed
authorWuzzy <Wuzzy2@mail.ru>
Wed, 12 Feb 2020 21:08:43 +0000 (22:08 +0100)
committerSmallJoker <mk939@ymail.com>
Thu, 13 Feb 2020 19:38:13 +0000 (20:38 +0100)
src/map.cpp

index f1911d1a78c7d64d485c8a3bc50de61ecc237335..a6b9d398f4c1ca360f89036947a6e5fd152b7e70 100644 (file)
@@ -761,8 +761,8 @@ void Map::transformLiquids(std::map<v3s16, MapBlock*> &modified_blocks,
                        // set level to last 3 bits, flowing down bit to 4th bit
                        n0.param2 = (flowing_down ? LIQUID_FLOW_DOWN_MASK : 0x00) | (new_node_level & LIQUID_LEVEL_MASK);
                } else {
-                       // set the liquid level and flow bit to 0
-                       n0.param2 = ~(LIQUID_LEVEL_MASK | LIQUID_FLOW_DOWN_MASK);
+                       // set the liquid level and flow bits to 0
+                       n0.param2 &= ~(LIQUID_LEVEL_MASK | LIQUID_FLOW_DOWN_MASK);
                }
 
                // change the node.