summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-03-01 01:32:54 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-03-01 01:32:54 +0200
commit9a22d02903549c09f059b12f0ec06ea12a19abbb (patch)
tree62ef962047b8ced9dd65c3f8157eb2713ec818e8 /src/main.cpp
parentf923c1fb6618988c24016bd5a2aa4f3cebb30214 (diff)
downloadminetest-9a22d02903549c09f059b12f0ec06ea12a19abbb.tar.gz
minetest-9a22d02903549c09f059b12f0ec06ea12a19abbb.tar.bz2
minetest-9a22d02903549c09f059b12f0ec06ea12a19abbb.zip
mapgen tweaking
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 01dd93ffc..56ac4affd 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -496,7 +496,7 @@ Inventory local_inventory;
u16 g_selected_item = 0;
bool g_show_map_plot = false;
-bool g_refresh_map_plot = true;
+bool g_refresh_map_plot = false;
/*
Debug streams
@@ -1267,7 +1267,7 @@ void draw_hotbar(video::IVideoDriver *driver, gui::IGUIFont *font,
}
video::ITexture *g_map_plot_texture = NULL;
-float g_map_plot_texture_scale = 2;
+float g_map_plot_texture_scale = 4;
void updateMapPlotTexture(v2f centerpos, video::IVideoDriver* driver,
Client *client)
@@ -1306,21 +1306,24 @@ 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
+ else if(h < WATER_LEVEL + 2 // Sand
&& get_have_sand(client->getMapSeed(), pf))
- // Sand
c.set(255, 237, 201, 175);
#if 1
- else if(h < WATER_LEVEL + 10) // Green
- c.set(255, 50, 150, 50);
- else if(h < WATER_LEVEL + 20) // Greenish yellow
- c.set(255, 110, 185, 50);
- else if(h < WATER_LEVEL + 50) // Yellow
- c.set(255, 220, 220, 50);
- else if(h < WATER_LEVEL + 100) // White
- c.set(255, 180, 180, 180);
+ else if(h < WATER_LEVEL + 10)
+ c.set(255, 50, 150, 50); // Green
+ else if(h < WATER_LEVEL + 20)
+ c.set(255, 110, 185, 50); // Yellowish green
+ else if(h < WATER_LEVEL + 40)
+ c.set(255, 180, 210, 50); // Greenish yellow
+ else if(h < WATER_LEVEL + 60)
+ c.set(255, 220, 220, 50); // Yellow
+ else if(h < WATER_LEVEL + 80)
+ c.set(255, 200, 200, 110); // Yellowish white
+ else if(h < WATER_LEVEL + 100)
+ c.set(255, 190, 190, 190); // Grey
else
- c.set(255, 255, 255, 255);
+ c.set(255, 255, 255, 255); // White
#endif
/*else if(h < WATER_LEVEL + d1)
{