summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-11-17 01:59:04 -0500
committerkwolekr <kwolekr@minetest.net>2013-11-17 01:59:04 -0500
commite396fb29840c3b87b0442fe6d641c94e8165ed27 (patch)
tree2e0acec1876e64db499c1bb7cc65a113ca3469fd /src/map.h
parent90e7832408eb313676d40b747ec533c3b07e5c28 (diff)
downloadminetest-e396fb29840c3b87b0442fe6d641c94e8165ed27.tar.gz
minetest-e396fb29840c3b87b0442fe6d641c94e8165ed27.tar.bz2
minetest-e396fb29840c3b87b0442fe6d641c94e8165ed27.zip
Actually fix weather
The real problem was that MapBlocks were not activated before getting sent to the client
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index b70b18acc..a6480c569 100644
--- a/src/map.h
+++ b/src/map.h
@@ -403,6 +403,9 @@ public:
*/
MapBlock * emergeBlock(v3s16 p, bool create_blank=true);
+
+ // Carries out any initialization necessary before block is sent
+ void prepareBlock(MapBlock *block);
// Helper for placing objects on ground level
s16 findGroundLevel(v2s16 p2d);