diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-22 23:55:02 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-22 23:55:02 +0300 |
commit | 4a6b9a6ac1b07239474bce8d3ebf772ce75e862e (patch) | |
tree | 4d29d47ce8840b44efe044db0050099b92996475 /src/environment.cpp | |
parent | e0329a3caee863a2302748f710401bfc0dfa78db (diff) | |
download | minetest-4a6b9a6ac1b07239474bce8d3ebf772ce75e862e.tar.gz minetest-4a6b9a6ac1b07239474bce8d3ebf772ce75e862e.tar.bz2 minetest-4a6b9a6ac1b07239474bce8d3ebf772ce75e862e.zip |
Some work-in-progress stuff and many comment updates
Diffstat (limited to 'src/environment.cpp')
-rw-r--r-- | src/environment.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index f233eaf7f..3ebfef0c5 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -739,7 +739,7 @@ void ServerEnvironment::step(float dtime) if(1) { MapNode n_top = block->getNodeNoEx(p0+v3s16(0,1,0)); - if(content_features(n_top.d).walkable == false && + if(content_features(n_top.d).air_equivalent && n_top.getLight(LIGHTBANK_DAY) >= 13) { n.d = CONTENT_GRASS; @@ -796,10 +796,10 @@ void ServerEnvironment::step(float dtime) // Convert mud under proper lighting to grass if(n.d == CONTENT_MUD) { - if(myrand()%4 == 0) + if(myrand()%10 == 0) { MapNode n_top = block->getNodeNoEx(p0+v3s16(0,1,0)); - if(content_features(n_top.d).walkable == false && + if(content_features(n_top.d).air_equivalent && n_top.getLightBlend(getDayNightRatio()) >= 13) { n.d = CONTENT_GRASS; |