Fix AO not initializing on mine turfs (#3639)

Fixes #3638.
This commit is contained in:
Lohikar
2017-10-14 11:32:33 -05:00
committed by Erki
parent 4773a8a626
commit 146726ffcf
2 changed files with 9 additions and 3 deletions
+8 -3
View File
@@ -40,7 +40,7 @@
has_resources = 1
// Copypaste parent call for performance.
/turf/simulated/mineral/Initialize()
/turf/simulated/mineral/Initialize(mapload)
if (initialized)
crash_with("Warning: [src]([type]) initialized multiple times!")
@@ -54,6 +54,8 @@
luminosity = 1
has_opaque_atom = TRUE
if (!mapload)
regenerate_ao()
if (smooth)
pixel_x = -4
@@ -519,7 +521,7 @@
roof_type = null
// Copypaste parent for performance.
/turf/simulated/floor/asteroid/Initialize()
/turf/simulated/floor/asteroid/Initialize(mapload)
if(initialized)
crash_with("Warning: [src]([type]) initialized multiple times!")
initialized = TRUE
@@ -534,6 +536,9 @@
if(prob(20))
overlay_detail = rand(0,9)
if (mapload && permit_ao)
queue_ao()
if (smooth)
pixel_x = -4
pixel_y = -4
@@ -787,4 +792,4 @@
/turf/simulated/mineral/Destroy()
clear_ore_effects()
. = ..()
. = ..()