mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Fixes blast door collisions (#32061)
This commit is contained in:
@@ -162,6 +162,51 @@
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("[src] resists your efforts to force it!"))
|
||||
|
||||
/obj/machinery/door/poddoor/update_bounds()
|
||||
if(width <= 1)
|
||||
return
|
||||
|
||||
QDEL_LIST_CONTENTS(fillers)
|
||||
|
||||
if(dir in list(NORTH, SOUTH))
|
||||
bound_width = width * world.icon_size
|
||||
bound_height = world.icon_size
|
||||
bound_y = 0
|
||||
pixel_y = 0
|
||||
if(dir == NORTH)
|
||||
bound_x = -(width - 1) * world.icon_size
|
||||
pixel_x = -(width - 1) * world.icon_size
|
||||
else
|
||||
bound_x = 0
|
||||
pixel_x = 0
|
||||
|
||||
else
|
||||
bound_width = world.icon_size
|
||||
bound_height = width * world.icon_size
|
||||
bound_x = 0
|
||||
pixel_x = 0
|
||||
if(dir == WEST)
|
||||
bound_y = -(width - 1) * world.icon_size
|
||||
pixel_y = -(width - 1) * world.icon_size
|
||||
else
|
||||
bound_y = 0
|
||||
pixel_y = 0
|
||||
|
||||
LAZYINITLIST(fillers)
|
||||
|
||||
var/obj/last_filler = src
|
||||
for(var/i in 1 to width - 1)
|
||||
var/obj/airlock_filler_object/filler
|
||||
|
||||
filler = new(src)
|
||||
filler.pair_airlock(src)
|
||||
filler.loc = get_step(last_filler, turn(dir, 90))
|
||||
filler.density = density
|
||||
filler.set_opacity(opacity)
|
||||
|
||||
fillers += filler
|
||||
last_filler = filler
|
||||
|
||||
// Whoever wrote the old code for multi-tile spesspod doors needs to burn in hell. - Unknown
|
||||
// Wise words. - Bxil
|
||||
/obj/machinery/door/poddoor/multi_tile
|
||||
|
||||
Reference in New Issue
Block a user