diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-01-24 01:58:15 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-01-24 01:58:15 +0200 |
commit | 4a952f22d779cdce27dbfc68a23a7d13d3e62c0d (patch) | |
tree | e9951cd312a946a3b47bbbfa424041b452aa1093 /src/map.cpp | |
parent | f0819246702e3c25bc7bd354c0ed6f6520454b80 (diff) | |
download | minetest-4a952f22d779cdce27dbfc68a23a7d13d3e62c0d.tar.gz minetest-4a952f22d779cdce27dbfc68a23a7d13d3e62c0d.tar.bz2 minetest-4a952f22d779cdce27dbfc68a23a7d13d3e62c0d.zip |
small fixes here and there
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/map.cpp b/src/map.cpp index 973e12678..5655ee9ec 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1689,7 +1689,7 @@ ServerMap::ServerMap(std::string savedir, HMParams hmp, MapParams mp): list_plants_amount->addPoint(p, Attribute(plants_amount));*/ float plants_amount = 0; - if(myrand()%5 == 0) + if(myrand()%4 == 0) { plants_amount = 1.5; } @@ -2880,16 +2880,16 @@ continue_generating: n.d = CONTENT_LEAVES; - if(rand()%4!=0) sector->setNode(gp+v3s16(0,5,0), n); + if(myrand()%4!=0) sector->setNode(gp+v3s16(0,5,0), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(-1,5,0), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(1,5,0), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(0,5,-1), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(0,5,1), n); - /*if(rand()%3!=0) sector->setNode(gp+v3s16(1,5,1), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(-1,5,1), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(-1,5,-1), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(1,5,-1), n);*/ + if(myrand()%3!=0) sector->setNode(gp+v3s16(-1,5,0), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(1,5,0), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(0,5,-1), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(0,5,1), n); + /*if(myrand()%3!=0) sector->setNode(gp+v3s16(1,5,1), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(-1,5,1), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(-1,5,-1), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(1,5,-1), n);*/ sector->setNode(gp+v3s16(0,4,0), n); @@ -2911,14 +2911,14 @@ continue_generating: sector->setNode(gp+v3s16(-1,3,-1), n); sector->setNode(gp+v3s16(1,3,-1), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(-1,2,0), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(1,2,0), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(0,2,-1), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(0,2,1), n); - /*if(rand()%3!=0) sector->setNode(gp+v3s16(1,2,1), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(-1,2,1), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(-1,2,-1), n); - if(rand()%3!=0) sector->setNode(gp+v3s16(1,2,-1), n);*/ + if(myrand()%3!=0) sector->setNode(gp+v3s16(-1,2,0), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(1,2,0), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(0,2,-1), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(0,2,1), n); + /*if(myrand()%3!=0) sector->setNode(gp+v3s16(1,2,1), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(-1,2,1), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(-1,2,-1), n); + if(myrand()%3!=0) sector->setNode(gp+v3s16(1,2,-1), n);*/ // Objects are identified by wanted position objects_to_remove.push_back(p); |