* fix for broken water
authorPerttu Ahola <celeron55@gmail.com>
Wed, 3 Aug 2011 17:00:25 +0000 (19:00 +0200)
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Wed, 3 Aug 2011 17:00:25 +0000 (19:00 +0200)
src/map.cpp

index 092ce97fdcf030cca3b60c8af40a9b09a0b6a0fe..d51aa46c1f890c6902190716bb37d30dc75801a4 100644 (file)
@@ -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);
                }