From 231386d50192a798fd30d49ae758da254f4a9db1 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 28 Feb 2011 14:51:57 +0200 Subject: tweaked mapgen --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') 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 -- cgit v1.2.3