From 71dbee43d005ce39fa17834cc34fe4233945e24f Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 3 Feb 2011 13:48:17 +0200 Subject: [PATCH] some generation-time mud flow tweaking --- src/defaultsettings.cpp | 2 +- src/main.cpp | 5 +- src/map.cpp | 179 ++++++++++++++++++++++++---------------- src/utility.h | 6 ++ src/voxel.h | 4 + 5 files changed, 123 insertions(+), 73 deletions(-) diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 6d61bdd8..0665cd02 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 e6b55e1b..728de280 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 80210cea..9a976614 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 89333159..0cffb16b 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