projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aeecf3
)
Weather: Fix uninitialized weather_update_time (sorry proller)
author
kwolekr
<kwolekr@minetest.net>
Sat, 9 Nov 2013 20:26:04 +0000
(15:26 -0500)
committer
kwolekr
<kwolekr@minetest.net>
Sat, 9 Nov 2013 20:29:22 +0000
(15:29 -0500)
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index cea20b0d3b0dd8ca1c50dd63ab93ea02deb37e3e..f74011933f2d53c222cf71ade69dd25ff7584652 100644
(file)
--- a/
src/map.cpp
+++ b/
src/map.cpp
@@
-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);
}