Weather: Fix uninitialized weather_update_time (sorry proller)
authorkwolekr <kwolekr@minetest.net>
Sat, 9 Nov 2013 20:26:04 +0000 (15:26 -0500)
committerkwolekr <kwolekr@minetest.net>
Sat, 9 Nov 2013 20:29:22 +0000 (15:29 -0500)
src/map.cpp

index cea20b0d3b0dd8ca1c50dd63ab93ea02deb37e3e..f74011933f2d53c222cf71ade69dd25ff7584652 100644 (file)
@@ -2841,6 +2841,8 @@ MapBlock* ServerMap::finishBlockMake(BlockMakeData *data,
                        y<=blockpos_max.Y+extra_borders.Y; y++)
                {
                        v3s16 p(x, y, z);
+                       MapBlock *block = getBlockNoCreateNoEx(p);
+                       block->weather_update_time = 0;
                        updateBlockHeat(senv, p * MAP_BLOCKSIZE, NULL);
                        updateBlockHumidity(senv, p * MAP_BLOCKSIZE, NULL);
                }