From: Perttu Ahola Date: Wed, 3 Aug 2011 17:00:25 +0000 (+0200) Subject: * fix for broken water X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=0b37f98e16038256cb568a1d3f004b8cdeb78df5;p=zefram%2Fminetest%2Fminetest_engine.git * fix for broken water --- diff --git a/src/map.cpp b/src/map.cpp index 092ce97f..d51aa46c 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); }