updates maploader, fixes a few things
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
light_power = 0.25
|
||||
dynamic_lighting = DYNAMIC_LIGHTING_DISABLED
|
||||
|
||||
|
||||
/turf/open/space/basic/New() //Do not convert to Initialize
|
||||
//This is used to optimize the map loader
|
||||
return
|
||||
|
||||
/turf/open/space/Initialize()
|
||||
icon_state = SPACE_ICON_STATE
|
||||
air = space_gas
|
||||
|
||||
+15
-1
@@ -70,7 +70,7 @@
|
||||
if(force)
|
||||
..()
|
||||
//this will completely wipe turf state
|
||||
var/turf/basic/B = new /turf/basic(src)
|
||||
var/turf/B = new world.turf(src)
|
||||
for(var/A in B.contents)
|
||||
qdel(A)
|
||||
for(var/I in B.vars)
|
||||
@@ -488,3 +488,17 @@
|
||||
LAZYINITLIST(decals)
|
||||
cut_overlay(decals[group])
|
||||
decals[group] = null
|
||||
|
||||
/turf/proc/photograph(limit=20)
|
||||
var/image/I = new()
|
||||
I.overlays += src
|
||||
for(var/V in contents)
|
||||
var/atom/A = V
|
||||
if(A.invisibility)
|
||||
continue
|
||||
I.overlays += A
|
||||
if(limit)
|
||||
limit--
|
||||
else
|
||||
return I
|
||||
return I
|
||||
|
||||
Reference in New Issue
Block a user