From 71dbee43d005ce39fa17834cc34fe4233945e24f Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 3 Feb 2011 13:48:17 +0200 Subject: some generation-time mud flow tweaking --- src/defaultsettings.cpp | 2 +- src/main.cpp | 5 +- src/map.cpp | 183 +++++++++++++++++++++++++++++------------------- src/utility.h | 6 ++ src/voxel.h | 4 ++ 5 files changed, 125 insertions(+), 75 deletions(-) (limited to 'src') diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 6d61bdd8a..0665cd02e 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -27,7 +27,7 @@ void set_default_settings() g_settings.setDefault("wanted_fps", "30"); g_settings.setDefault("fps_max", "60"); g_settings.setDefault("viewing_range_nodes_max", "300"); - g_settings.setDefault("viewing_range_nodes_min", "28"); + g_settings.setDefault("viewing_range_nodes_min", "35"); g_settings.setDefault("screenW", "800"); g_settings.setDefault("screenH", "600"); g_settings.setDefault("port", ""); diff --git a/src/main.cpp b/src/main.cpp index e6b55e1bf..728de2800 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -350,6 +350,8 @@ Doing now: - Needs method SyncProcessData * What is the problem with the server constantly saving one or a few blocks? List the first saved block, maybe it explains. +* Water doesn't start flowing after map generation like it should +* Better water generation ====================================================================== @@ -2775,7 +2777,8 @@ int main(int argc, char *argv[]) if(g_settings.getBool("enable_fog") == true) { - f32 range = draw_control.wanted_range * BS; + //f32 range = draw_control.wanted_range * BS + MAP_BLOCKSIZE/2*BS; + f32 range = draw_control.wanted_range * BS + MAP_BLOCKSIZE/3*BS; if(draw_control.range_all) range = 100000*BS; diff --git a/src/map.cpp b/src/map.cpp index 80210cead..9a976614f 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1454,8 +1454,9 @@ void Map::transformLiquids(core::map & modified_blocks) u32 loopcount = 0; u32 initial_size = m_transforming_liquid.size(); - - //dstream<<"transformLiquids(): initial_size="<getPos().X<<"," + <getPos().Y<<"," + <getPos().Z<<")" + <(b)?(a):(b)) + #endif diff --git a/src/voxel.h b/src/voxel.h index 89333159c..0cffb16b5 100644 --- a/src/voxel.h +++ b/src/voxel.h @@ -152,6 +152,10 @@ public: p.Z >= MinEdge.Z && p.Z <= MaxEdge.Z ); } + bool contains(s32 i) const + { + return (i >= 0 && i < getVolume()); + } bool operator==(const VoxelArea &other) const { return (MinEdge == other.MinEdge -- cgit v1.2.3