Various lighting fixes. (#94)

* Various lighting fixes.

* Removes debug things.

* I forgot to hit crtl+s
This commit is contained in:
Pieter-Jan Briers
2016-12-16 19:18:09 +01:00
committed by TalkingCactus
parent 8724be8fca
commit 8b762a5317
6 changed files with 33 additions and 20 deletions
+4 -3
View File
@@ -442,7 +442,9 @@
if(!A0)
A0 = new area_type(null)
for(var/turf/T0 in L0)
var/area/old = T0.loc
A0.contents += T0
T0.change_area(old, A0)
remove_ripples()
@@ -459,7 +461,9 @@
continue
if(T0.type != T0.baseturf) //So if there is a hole in the shuttle we don't drag along the space/asteroid/etc to wherever we are going next
T0.copyTurf(T1)
var/area/old = T1.loc
areaInstance.contents += T1
T1.change_area(old, areaInstance)
//copy over air
if(istype(T1, /turf/open))
@@ -473,15 +477,12 @@
if(rotation)
T1.shuttleRotate(rotation)
//lighting stuff
T1.reconsider_lights()
SSair.remove_from_active(T1)
T1.CalculateAdjacentTurfs()
SSair.add_to_active(T1,1)
T0.ChangeTurf(turf_type)
T0.reconsider_lights()
SSair.remove_from_active(T0)
T0.CalculateAdjacentTurfs()
SSair.add_to_active(T0,1)