From: Wuzzy Date: Wed, 12 Feb 2020 21:08:43 +0000 (+0100) Subject: Fix param2 set to 240 if liquid source was renewed X-Git-Tag: 5.2.0~117 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ac5f53e364838b52096f86a0313cae452c7d62b8;p=oweals%2Fminetest.git Fix param2 set to 240 if liquid source was renewed --- diff --git a/src/map.cpp b/src/map.cpp index f1911d1a7..a6b9d398f 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -761,8 +761,8 @@ void Map::transformLiquids(std::map &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.