Weather: Fix uninitialized weather_update_time (sorry proller)

This commit is contained in:
kwolekr 2013-11-09 15:26:04 -05:00
parent 0aeecf3f7f
commit b401e58c0d

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