summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-28 14:51:57 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-28 14:51:57 +0200
commit231386d50192a798fd30d49ae758da254f4a9db1 (patch)
tree35c243a13baaece7180f0dc648d3994ea55aaab2 /src/main.cpp
parentad9e084e94f94a445cff37cae54c408567e008f3 (diff)
downloadminetest-231386d50192a798fd30d49ae758da254f4a9db1.tar.gz
minetest-231386d50192a798fd30d49ae758da254f4a9db1.tar.bz2
minetest-231386d50192a798fd30d49ae758da254f4a9db1.zip
tweaked mapgen
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2c9e9cf75..01dd93ffc 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -253,7 +253,8 @@ Doing now (most important at the top):
* not done
=== Next
-* Somehow generate trees
+* Generate trees better
+ - Add a "trees_added" flag to sector, or something
=== Fixmes
* Check the fixmes in the list above
@@ -275,7 +276,6 @@ Doing now (most important at the top):
* Switch to using a safe way for the self and env pointers
* Make some global environment hooks, like node placed and general
on_step()
-* Map should make the appropriate MapEditEvents
* Add a global Lua spawn handler and such
* Get rid of MapBlockObjects
* Other players could be sent to clients as LuaCAOs
@@ -1306,7 +1306,9 @@ void updateMapPlotTexture(v2f centerpos, video::IVideoDriver* driver,
c.set(255, 160, 160, 160);
else if(h < WATER_LEVEL - 0.5) // Water
c.set(255, 50, 50, 255);
- else if(h < WATER_LEVEL + 2) // Sand
+ else if(h < WATER_LEVEL + 2
+ && get_have_sand(client->getMapSeed(), pf))
+ // Sand
c.set(255, 237, 201, 175);
#if 1
else if(h < WATER_LEVEL + 10) // Green