mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-15 12:42:50 +00:00
jiggle SSatoms gently
This commit is contained in:
@@ -404,13 +404,13 @@
|
||||
// As this is only done at runtime, we have to create all the vending machines in existence and force them
|
||||
// to register their products when this asset initializes.
|
||||
/datum/asset/spritesheet/vending/proc/populate_vending_products()
|
||||
SSatoms.map_loader_begin()
|
||||
SSatoms.BeginMapLoad()
|
||||
for(var/path in subtypesof(/obj/machinery/vending))
|
||||
var/obj/machinery/vending/x = new path(null)
|
||||
// force an inventory build; with map_loader_begin active, init isn't called
|
||||
// force an inventory build; with BeginMapLoad active, init isn't called
|
||||
x.build_inventory()
|
||||
qdel(x)
|
||||
SSatoms.map_loader_stop()
|
||||
SSatoms.FinishMapLoad()
|
||||
|
||||
// /datum/asset/simple/genetics
|
||||
// assets = list(
|
||||
|
||||
@@ -366,7 +366,7 @@ var/global/use_preloader = FALSE
|
||||
first_turf_index++
|
||||
|
||||
//turn off base new Initialization until the whole thing is loaded
|
||||
SSatoms.map_loader_begin()
|
||||
SSatoms.BeginMapLoad()
|
||||
//instanciate the first /turf
|
||||
var/turf/T
|
||||
if(members[first_turf_index] != /turf/template_noop)
|
||||
@@ -385,7 +385,7 @@ var/global/use_preloader = FALSE
|
||||
for(index in 1 to first_turf_index-1)
|
||||
instance_atom(members[index],members_attributes[index],crds,no_changeturf,orientation)
|
||||
//Restore initialization to the previous value
|
||||
SSatoms.map_loader_stop()
|
||||
SSatoms.FinishMapLoad()
|
||||
|
||||
////////////////
|
||||
//Helpers procs
|
||||
@@ -406,9 +406,9 @@ var/global/use_preloader = FALSE
|
||||
|
||||
//custom CHECK_TICK here because we don't want things created while we're sleeping to not initialize
|
||||
if(TICK_CHECK)
|
||||
SSatoms.map_loader_stop()
|
||||
SSatoms.FinishMapLoad()
|
||||
stoplag()
|
||||
SSatoms.map_loader_begin()
|
||||
SSatoms.BeginMapLoad()
|
||||
|
||||
// Rotate the atom now that it exists, rather than changing its orientation beforehand through the fields["dir"]
|
||||
if(orientation != 0) // 0 means no rotation
|
||||
|
||||
Reference in New Issue
Block a user