tuned grass growth rate
authorPerttu Ahola <celeron55@gmail.com>
Sun, 29 May 2011 18:16:15 +0000 (21:16 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 29 May 2011 18:16:15 +0000 (21:16 +0300)
--HG--
extra : rebase_source : 8ad4d13fc7ab1088ebd18cf968d912949aab8eae

src/environment.cpp
src/main.cpp

index c93d11ca8a7314432d68e73c577a646944541bb7..36c754d5717b5a153279ffc868196e5d769671c0 100644 (file)
@@ -744,7 +744,7 @@ void ServerEnvironment::step(float dtime)
                                // Convert all mud under proper day lighting to grass
                                if(n.d == CONTENT_MUD)
                                {
-                                       if(1)
+                                       if(dtime_s > 300)
                                        {
                                                MapNode n_top = block->getNodeNoEx(p0+v3s16(0,1,0));
                                                if(content_features(n_top.d).air_equivalent &&
@@ -762,7 +762,7 @@ void ServerEnvironment::step(float dtime)
        /*
                Mess around in active blocks
        */
-       if(m_active_blocks_test_interval.step(dtime, 5.0))
+       if(m_active_blocks_test_interval.step(dtime, 10.0))
        {
                for(core::map<v3s16, bool>::Iterator
                                i = m_active_blocks.m_list.getIterator();
@@ -805,7 +805,7 @@ void ServerEnvironment::step(float dtime)
                                // Convert mud under proper lighting to grass
                                if(n.d == CONTENT_MUD)
                                {
-                                       if(myrand()%10 == 0)
+                                       if(myrand()%20 == 0)
                                        {
                                                MapNode n_top = block->getNodeNoEx(p0+v3s16(0,1,0));
                                                if(content_features(n_top.d).air_equivalent &&
index 11d50bfd1376051a6fb2b6787b1ecea62faf8a81..c6aa439ecbafc225ddc3b1f2202291bfffbe66f7 100644 (file)
@@ -308,21 +308,20 @@ Making it more portable:
 Stuff to do before release:\r
 ---------------------------\r
 - Make grass grow slower; utilize timestamp difference\r
+\r
+Stuff to do after release:\r
+---------------------------\r
+- Make sure server handles removing grass when a block is placed (etc)\r
+    - The client should not do it by itself\r
+- Block cube placement around player's head\r
 - Protocol version field\r
 - Consider getting some textures from cisoun's texture pack\r
        - Ask from Cisoun\r
 - Make sure the fence implementation and data format is good\r
        - Think about using same bits for material for fences and doors, for\r
        example\r
-- Make sure server handles removing grass when a block is placed (etc)\r
-    - The client should not do it by itself\r
-- Add mouse inversion in config\r
-- Block cube placement around player's head\r
-- Move mineral to param2, increment map serialization version, add conversion\r
-\r
-Stuff to do after release:\r
----------------------------\r
 - Finish the ActiveBlockModifier stuff and use it for something\r
+- Move mineral to param2, increment map serialization version, add conversion\r
 \r
 ======================================================================\r
 \r