mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Turf initialization tweaking.
Removes the need for a spawn() in New().
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
/area/initialize()
|
||||
..()
|
||||
if(turf_initializer)
|
||||
for(var/turf/simulated/T in src)
|
||||
T.initialize()
|
||||
if(turf_initializer)
|
||||
turf_initializer.initialize(T)
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
holy = 1
|
||||
levelupdate()
|
||||
|
||||
/turf/simulated/proc/initialize()
|
||||
return
|
||||
|
||||
/turf/simulated/proc/AddTracks(var/typepath,var/bloodDNA,var/comingdir,var/goingdir,var/bloodcolor="#A10808")
|
||||
var/obj/effect/decal/cleanable/blood/tracks/tracks = locate(typepath) in src
|
||||
if(!tracks)
|
||||
|
||||
@@ -11,9 +11,8 @@
|
||||
var/list/underlay_references
|
||||
var/global/overlay_map = list()
|
||||
|
||||
/turf/simulated/open/New()
|
||||
. = ..()
|
||||
spawn(1)
|
||||
/turf/simulated/open/initialize()
|
||||
..()
|
||||
below = GetBelow(src)
|
||||
ASSERT(HasBelow(z))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user