mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 06:00:23 +01:00
Multi-tile airlock building FIX
This commit is contained in:
@@ -1019,6 +1019,9 @@ About the new airlock wires panel:
|
||||
else
|
||||
name = "[istext(assembly.glass) ? "[assembly.glass] airlock" : assembly.base_name]"
|
||||
|
||||
//get the dir from the assembly
|
||||
set_dir(assembly.dir)
|
||||
|
||||
//wires
|
||||
var/turf/T = get_turf(newloc)
|
||||
if(T && (T.z in config.admin_levels))
|
||||
|
||||
@@ -4,17 +4,23 @@
|
||||
|
||||
/obj/machinery/door/airlock/multi_tile/New()
|
||||
..()
|
||||
switch(dir)
|
||||
if(EAST, WEST)
|
||||
bound_width = width * world.icon_size
|
||||
bound_height = world.icon_size
|
||||
else
|
||||
bound_width = world.icon_size
|
||||
bound_height = width * world.icon_size
|
||||
SetBounds()
|
||||
|
||||
/obj/machinery/door/airlock/multi_tile/Move()
|
||||
. = ..()
|
||||
SetBounds()
|
||||
|
||||
/obj/machinery/door/airlock/multi_tile/proc/SetBounds()
|
||||
if(dir in list(EAST, WEST))
|
||||
bound_width = width * world.icon_size
|
||||
bound_height = world.icon_size
|
||||
else
|
||||
bound_width = world.icon_size
|
||||
bound_height = width * world.icon_size
|
||||
|
||||
/obj/machinery/door/airlock/multi_tile/glass
|
||||
name = "Glass Airlock"
|
||||
icon = 'icons/obj/doors/Door2x1glass.dmi'
|
||||
opacity = 0
|
||||
glass = 1
|
||||
assembly_type = /obj/structure/door_assembly/multi_tile
|
||||
assembly_type = /obj/structure/door_assembly/multi_tile
|
||||
|
||||
@@ -282,8 +282,7 @@
|
||||
else
|
||||
path = text2path("/obj/machinery/door/airlock[airlock_type]")
|
||||
|
||||
var/obj/machinery/door/new_airlock = new path(src.loc, src)
|
||||
new_airlock.dir = src.dir
|
||||
new path(src.loc, src)
|
||||
qdel(src)
|
||||
else
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user