Delay smoothing atoms that have not initialized yet (#38173)

This commit is contained in:
Tad Hardesty
2018-06-03 12:25:34 -07:00
committed by AnturK
parent 1351b4ab2b
commit 9d49ce482c
2 changed files with 17 additions and 7 deletions

View File

@@ -57,12 +57,12 @@
if(!bounds)
return FALSE
smooth_zlevel(world.maxz)
repopulate_sorted_areas()
SSlighting.initialize_lighting_objects(block(locate(bounds[MAP_MINX], bounds[MAP_MINY], bounds[MAP_MINZ]),locate(bounds[MAP_MAXX], bounds[MAP_MAXY], bounds[MAP_MAXZ])))
//initialize things that are normally initialized after map load
initTemplateBounds(bounds)
smooth_zlevel(world.maxz)
log_game("Z-level [name] loaded at at [x],[y],[world.maxz]")
return level