From 4a6b9a6ac1b07239474bce8d3ebf772ce75e862e Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 22 May 2011 23:55:02 +0300 Subject: Some work-in-progress stuff and many comment updates --- src/environment.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/environment.cpp') 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; -- cgit v1.2.3