mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-02-06 14:39:20 +00:00
Update DMM Suite (#2711)
Updates the DMM Suite from /tg/ upstream, adding the ability to load tgm format maps, tick-checks, and better compatibility with SSatoms / Initialize(). Also adds some framework for random ruin generation, though it is not functional yet.
This commit is contained in:
@@ -144,6 +144,13 @@ var/datum/controller/subsystem/atoms/SSatoms
|
||||
InitializeAtoms()
|
||||
old_initialized = SSatoms.old_initialized
|
||||
|
||||
/datum/controller/subsystem/atoms/proc/map_loader_begin()
|
||||
old_initialized = initialized
|
||||
initialized = INITIALIZATION_INSSATOMS
|
||||
|
||||
/datum/controller/subsystem/atoms/proc/map_loader_stop()
|
||||
initialized = old_initialized
|
||||
|
||||
#undef BAD_INIT_QDEL_BEFORE
|
||||
#undef BAD_INIT_DIDNT_INIT
|
||||
#undef BAD_INIT_SLEPT
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
flags = SS_NO_FIRE | SS_NO_DISPLAY
|
||||
|
||||
/datum/controller/subsystem/misc_late/Initialize(timeofday)
|
||||
// Sort the area list.
|
||||
sortTim(all_areas, /proc/cmp_name_asc)
|
||||
// Generate the area list.
|
||||
resort_all_areas()
|
||||
|
||||
var/turf/picked
|
||||
// Setup the teleport locs.
|
||||
@@ -38,3 +38,15 @@
|
||||
shuttle_controller.setup_shuttle_docks()
|
||||
|
||||
..(timeofday, TRUE)
|
||||
|
||||
/proc/resort_all_areas()
|
||||
all_areas = list()
|
||||
for (var/area/A in world)
|
||||
all_areas += A
|
||||
|
||||
sortTim(all_areas, /proc/cmp_text_asc)
|
||||
|
||||
/proc/sorted_add_area(area/A)
|
||||
all_areas += A
|
||||
|
||||
sortTim(all_areas, /proc/cmp_text_asc)
|
||||
|
||||
Reference in New Issue
Block a user