Weather: Fix uninitialized weather_update_time (sorry proller)

master
kwolekr 2013-11-09 15:26:04 -05:00
parent 0aeecf3f7f
commit b401e58c0d
1 changed files with 2 additions and 0 deletions

View 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);
}