Fixed several bad type checks in shuttle procs (#33497)

This commit is contained in:
Cruix
2017-12-13 21:08:30 -06:00
committed by CitadelStationBot
parent b11d1c024e
commit 2afb3c0368
+3 -3
View File
@@ -433,7 +433,7 @@
for(var/i in 1 to old_turfs.len)
var/turf/oldT = old_turfs[i]
if(!oldT || !istype(oldT, area_type))
if(!oldT || !istype(oldT.loc, area_type))
continue
var/area/old_area = oldT.loc
underlying_area.contents += oldT
@@ -460,7 +460,7 @@
for(var/i in 1 to L0.len)
var/turf/T0 = L0[i]
if(!T0 || !istype(T0, area_type))
if(!T0 || !istype(T0.loc, area_type))
continue
var/turf/T1 = L1[i]
if(!T1)
@@ -745,7 +745,7 @@
var/list/L0 = return_ordered_turfs(x, y, z, dir)
for (var/thing in L0)
var/turf/T = thing
if(!T || !istype(T, area_type))
if(!T || !istype(T.loc, area_type))
continue
for (var/thing2 in T)
var/atom/movable/AM = thing2