defines isspacearea (#25064)

* isspace define

* istype to isspacearea

* paranthesis

* fixes

* I HATE VSCDEV ON MMOBILE
This commit is contained in:
Deniz
2024-04-12 20:44:22 +02:00
committed by GitHub
parent d29b88f81b
commit d88e03c297
8 changed files with 10 additions and 8 deletions
@@ -32,7 +32,7 @@
return
if(mount_requirements & MOUNTED_FRAME_NOSPACE)
var/area/my_area = get_area(build_turf)
if(!istype(my_area) || !my_area.requires_power || istype(my_area, /area/space))
if(!istype(my_area) || !my_area.requires_power || isspacearea(my_area))
to_chat(user, "<span class='warning'>[src] cannot be placed in this area.</span>")
return
return TRUE