Shuttle and map fixes

This commit is contained in:
Mark van Alphen
2019-05-08 22:05:11 +02:00
parent 2618def9a1
commit bc91f78c93
3 changed files with 26 additions and 14 deletions
+10 -11
View File
@@ -484,18 +484,17 @@
if(!T1)
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)
areaInstance.contents += T1
T0.copyTurf(T1)
areaInstance.contents += T1
//copy over air
if(istype(T1, /turf/simulated))
var/turf/simulated/Ts1 = T1
Ts1.copy_air_with_tile(T0)
//copy over air
if(istype(T1, /turf/simulated))
var/turf/simulated/Ts1 = T1
Ts1.copy_air_with_tile(T0)
//move mobile to new location
for(var/atom/movable/AM in T0)
AM.onShuttleMove(T1, rotation)
//move mobile to new location
for(var/atom/movable/AM in T0)
AM.onShuttleMove(T0, T1, rotation)
if(rotation)
T1.shuttleRotate(rotation)
@@ -913,4 +912,4 @@
T.color = color
if(T.dir != dir)
T.dir = dir
return T
return T