summaryrefslogtreecommitdiff
path: root/src/content_mapnode.cpp
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-14 16:17:50 +0200
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-14 16:17:53 +0200
commit5146c826be9386cc2adeb8f678063a2f9cfc1dee (patch)
treeb2fe77bdc63f14447a0fb26b7c190aa1bdfd05b3 /src/content_mapnode.cpp
parent5383aa847f1b9d5400def4f2a1b83904dcea9db9 (diff)
downloadminetest-5146c826be9386cc2adeb8f678063a2f9cfc1dee.tar.gz
minetest-5146c826be9386cc2adeb8f678063a2f9cfc1dee.tar.bz2
minetest-5146c826be9386cc2adeb8f678063a2f9cfc1dee.zip
* possibly improved water flow, by flyx86
- When flowing liquid starts to flow down, it stops contributing to its neighboring nodes' liquid level (possibly transforming it back to air) - Flowing liquid turns into a source if there are at least 2 adjacent liquid source nodes - If a new liquid flow reaches existing flowing liquid, the existing liquid is now updated properly.
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r--src/content_mapnode.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp
index 2e7a240f3..38356599f 100644
--- a/src/content_mapnode.cpp
+++ b/src/content_mapnode.cpp
@@ -276,6 +276,7 @@ void content_mapnode_init()
f->buildable_to = true;
f->liquid_type = LIQUID_FLOWING;
f->liquid_alternative_flowing = CONTENT_WATER;
+ f->liquid_alternative_source = CONTENT_WATERSOURCE;
i = CONTENT_WATERSOURCE;
f = &content_features(i);
@@ -307,6 +308,7 @@ void content_mapnode_init()
f->liquid_type = LIQUID_SOURCE;
f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
f->liquid_alternative_flowing = CONTENT_WATER;
+ f->liquid_alternative_source = CONTENT_WATERSOURCE;
i = CONTENT_TORCH;
f = &content_features(i);