diff --git a/code/__DEFINES/movement.dm b/code/__DEFINES/movement.dm index 6a57c512c1..fa7eaeedca 100644 --- a/code/__DEFINES/movement.dm +++ b/code/__DEFINES/movement.dm @@ -17,7 +17,7 @@ GLOBAL_VAR_INIT(glide_size_multiplier, 1.0) /// Enables smooth movement #ifndef SMOOTH_MOVEMENT - #define SMOOTH_MOVEMENT TRUE + #define SMOOTH_MOVEMENT FALSE #endif /// Set appearance flags in vars diff --git a/code/datums/components/combat_mode.dm b/code/datums/components/combat_mode.dm index b9952e9133..29d90fd509 100644 --- a/code/datums/components/combat_mode.dm +++ b/code/datums/components/combat_mode.dm @@ -125,7 +125,7 @@ ///Changes the user direction to (try) keep match the pointer. /datum/component/combat_mode/proc/on_move(atom/movable/source, dir, atom/oldloc, forced) var/mob/living/L = source - if(mode_flags & COMBAT_MODE_ACTIVE && L.client && lastmousedir && lastmousedir != dir) + if((mode_flags & COMBAT_MODE_ACTIVE) && L.client) L.setDir(lastmousedir, ismousemovement = TRUE) /// Added movement delay if moving backward. diff --git a/code/game/atoms_movement.dm b/code/game/atoms_movement.dm index 787f281b79..4f07ff6f95 100644 --- a/code/game/atoms_movement.dm +++ b/code/game/atoms_movement.dm @@ -124,6 +124,7 @@ last_move = 0 return + setDir(direct) if(.) Moved(oldloc, direct) if(. && pulling && pulling == pullee && pulling != moving_from_pull) //we were pulling a thing and didn't lose it during our move. @@ -145,7 +146,6 @@ set_glide_size(glide_size_override, FALSE) last_move = direct - setDir(direct) if(. && has_buckled_mobs() && !handle_buckled_mob_movement(loc, direct, glide_size_override)) //movement failed due to buckled mob(s) return FALSE diff --git a/code/modules/movespeed/_movespeed_modifier.dm b/code/modules/movespeed/_movespeed_modifier.dm index e45d88c0e1..e18fafad48 100644 --- a/code/modules/movespeed/_movespeed_modifier.dm +++ b/code/modules/movespeed/_movespeed_modifier.dm @@ -217,10 +217,9 @@ GLOBAL_LIST_EMPTY(movespeed_modification_cache) else continue . = M.apply_multiplicative(., src) - var/old = cached_multiplicative_slowdown // CITAEDL EDIT - To make things a bit less jarring, when in situations where // your delay decreases, "give" the delay back to the client cached_multiplicative_slowdown = . - var/diff = old - cached_multiplicative_slowdown + var/diff = (client.last_move - client.move_delay) - cached_multiplicative_slowdown if((diff > 0) && client) if(client.move_delay > world.time + 1.5) client.move_delay -= diff @@ -236,7 +235,6 @@ GLOBAL_LIST_EMPTY(movespeed_modification_cache) var/pixels_per_tick = pixels_moved / ticks_allowed set_glide_size(pixels_per_tick * GLOB.glide_size_multiplier, TRUE) - /// Get the move speed modifiers list of the mob /mob/proc/get_movespeed_modifiers() . = LAZYCOPY(movespeed_modification)