mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-05 15:02:56 +00:00
Fixes mechs being moved two z-levels instead of one when walking up stairs (#7213)
Fixes #6036 Fixes #7212 Basically the stair's CollidedWith was called twice, once in the parent proc, once in the child. This prevents that.
This commit is contained in:
@@ -468,6 +468,8 @@
|
||||
/obj/mecha/Collide(var/atom/obstacle)
|
||||
. = ..()
|
||||
// src.inertia_dir = null
|
||||
if(istype(obstacle, /obj/structure/stairs))
|
||||
return
|
||||
if(istype(obstacle, /obj))
|
||||
var/obj/O = obstacle
|
||||
if(istype(O, /obj/effect/portal)) //derpfix
|
||||
|
||||
Reference in New Issue
Block a user