mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-25 08:34:23 +00:00
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 /🆑
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user