[MIRROR] Fix invisible box on rotated multi-tile airlocks [MDB IGNORE] (#23210)

* Fix invisible box on rotated multi-tile airlocks (#77736)

## About The Pull Request

Fixes airlock bounding box being incorrect when rotated leading to a
solid, invisible box on the adjacent tile. Icon states match airlock
direction.

## Changelog

🆑 LT3
fix: Rotated multi-tile airlocks display correctly and won't create an
invisible box next to itself
/🆑

* Fix invisible box on rotated multi-tile airlocks

---------

Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-08-19 22:32:14 +02:00
committed by GitHub
parent e1c1f42645
commit 4e282227f9
6 changed files with 17 additions and 18 deletions
@@ -393,18 +393,3 @@
qdel(src)
return TRUE
return FALSE
/**
* Updates the bounds of the airlock assembly
* Sets the bounds of the airlock assembly according to the direction.
* This ensures that the bounds are always correct, even if the airlock is rotated.
*/
/obj/structure/door_assembly/multi_tile/proc/set_bounds()
var/size = get_size_in_tiles(src)
if(dir in list(NORTH, SOUTH))
bound_width = size * world.icon_size
bound_height = world.icon_size
else
bound_width = world.icon_size
bound_height = size * world.icon_size