Replace 2 A.name==Space checks with istypes

This commit is contained in:
Tigercat2000
2015-05-22 11:23:20 -07:00
parent 177db675d6
commit c6a4fdc374
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -107,7 +107,7 @@
/obj/item/areaeditor/proc/get_area_type(var/area/A = get_area())
if (A.name == "Space")
if (istype(A,/area/space))
return AREA_SPACE
var/list/SPECIALS = list(
/area/shuttle,
@@ -19,7 +19,7 @@
if (src.mount_reqs.Find("simfloor") && !istype(turf_loc, /turf/simulated/floor))
user << "<span class='rose'>[src] cannot be placed on this spot.</span>"
return
if (src.mount_reqs.Find("nospace") && (areaMaster.requires_power == 0 || areaMaster.name == "Space"))
if (src.mount_reqs.Find("nospace") && (areaMaster.requires_power == 0 || istype(areaMaster,/area/space)))
user << "<span class='rose'>[src] cannot be placed in this area.</span>"
return
return 1