summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorWuzzy <Wuzzy2@mail.ru>2020-02-12 22:08:43 +0100
committerSmallJoker <mk939@ymail.com>2020-02-13 20:38:13 +0100
commitac5f53e364838b52096f86a0313cae452c7d62b8 (patch)
tree4c1df8f28958accd76be99f7f8c73e1ec00e15f8 /src/map.cpp
parentdf74d369a395f0b99bd23fa3e7fb4c628c3df336 (diff)
downloadminetest-ac5f53e364838b52096f86a0313cae452c7d62b8.tar.gz
minetest-ac5f53e364838b52096f86a0313cae452c7d62b8.tar.bz2
minetest-ac5f53e364838b52096f86a0313cae452c7d62b8.zip
Fix param2 set to 240 if liquid source was renewed
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
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<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.