diff --git a/code/datums/movement/mob.dm b/code/datums/movement/mob.dm index 11a8627311d65..e464ade578a8a 100644 --- a/code/datums/movement/mob.dm +++ b/code/datums/movement/mob.dm @@ -140,9 +140,13 @@ /datum/movement_handler/mob/delay/DoMove(direction, mover, is_external) if(is_external) return - next_move = world.time + max(1, mob.movement_delay()) - // [SIERRA-ADD] - GLIDING + // [SIERRA-EDIT] - SSINPUT + // next_move = world.time + max(1, mob.movement_delay()) // SIERRA-EDIT - ORIGINAL delay = max(1, mob.movement_delay()) + if((direction & (direction - 1))) // moved diagonally + delay *= sqrt(2) + + next_move = world.time + delay UpdateGlideSize() // [/SIERRA-ADD] diff --git a/mods/gliding/code/movable.dm b/mods/gliding/code/movable.dm index 5b23a1c8dd482..e53182dd2b282 100644 --- a/mods/gliding/code/movable.dm +++ b/mods/gliding/code/movable.dm @@ -4,10 +4,6 @@ else glide_size = max(min, glide_size_override) - for (var/atom/movable/AM in contents) - AM.set_glide_size(glide_size, min, max) - - /proc/step_glide(atom/movable/am, dir, glide_size_override) am.set_glide_size(glide_size_override) return step(am, dir) diff --git a/packs/sierra-tweaks/objects/structures/cargo.dm b/packs/sierra-tweaks/objects/structures/cargo.dm index 05b94153116b6..954bb64ddf053 100644 --- a/packs/sierra-tweaks/objects/structures/cargo.dm +++ b/packs/sierra-tweaks/objects/structures/cargo.dm @@ -13,8 +13,7 @@ /obj/structure/cart/Move() . = ..() if(load && !istype(load, /datum/vehicle_dummy_load)) - // SIERRA TODO: Wait till SSInput - // load.set_glide_size(src.glide_size) + load.set_glide_size(src.glide_size) load.forceMove(src.loc) var/todir = src.dir if(istype(load, /obj/structure/closet/crate))