updates maploader, fixes a few things

This commit is contained in:
LetterJay
2017-03-24 01:39:11 -05:00
parent 41808ea6ae
commit 1d518bb4dd
17 changed files with 89 additions and 56 deletions
+5
View File
@@ -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
View File
@@ -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