aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-03 19:00:25 +0200
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-08-03 19:00:25 +0200
commit0b37f98e16038256cb568a1d3f004b8cdeb78df5 (patch)
tree27c367b4eee0ab4a3b30fffd9be281352e5f2103 /src
parentf143e269f47fd024f69c3f536b558fbac4828b41 (diff)
downloadminetest-0b37f98e16038256cb568a1d3f004b8cdeb78df5.tar.gz
minetest-0b37f98e16038256cb568a1d3f004b8cdeb78df5.tar.bz2
minetest-0b37f98e16038256cb568a1d3f004b8cdeb78df5.zip
* fix for broken water
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 092ce97fd..d51aa46c1 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1086,7 +1086,7 @@ void Map::addNodeAndUpdate(v3s16 p, MapNode n,
v3s16 p2 = p + dirs[i];
MapNode n2 = getNode(p2);
- if(content_liquid(n2.getContent()))
+ if(content_liquid(n2.getContent()) || n2.getContent() == CONTENT_AIR)
{
m_transforming_liquid.push_back(p2);
}
@@ -1260,7 +1260,7 @@ void Map::removeNodeAndUpdate(v3s16 p,
v3s16 p2 = p + dirs[i];
MapNode n2 = getNode(p2);
- if(content_liquid(n2.getContent()))
+ if(content_liquid(n2.getContent()) || n2.getContent() == CONTENT_AIR)
{
m_transforming_liquid.push_back(p2);
}