diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index 814f1d22bff..bf8afc7e376 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -35,6 +35,7 @@ var/movement_cost = 0 // How much the turf slows down movement, if any. // Parent code is duplicated in here instead of ..() for performance reasons. +// There's ALSO a copy of this in mine_turfs.dm! /turf/Initialize(mapload, ...) if (initialized) crash_with("Warning: [src]([type]) initialized multiple times!") diff --git a/code/modules/mining/mine_turfs.dm b/code/modules/mining/mine_turfs.dm index 9e52ebc912a..51da8b722f0 100644 --- a/code/modules/mining/mine_turfs.dm +++ b/code/modules/mining/mine_turfs.dm @@ -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() - . = ..() \ No newline at end of file + . = ..()