Kill some jerks (#28224)

* Kill some jerks

* Less jerky vehicles, too.
This commit is contained in:
Charlie Nolan
2025-02-02 17:09:38 +00:00
committed by GitHub
parent 4ec4e4128a
commit b56c3908d7
7 changed files with 58 additions and 36 deletions
@@ -135,7 +135,10 @@
if(flags & MOVEMENT_LOOP_IGNORE_GLIDE)
return
moving.set_glide_size(MOVEMENT_ADJUSTED_GLIDE_SIZE(delay, visual_delay))
var/glide_multiplier = visual_delay
if(IS_DIR_DIAGONAL(get_dir(old_loc, moving.loc)) && !(moving.appearance_flags & LONG_GLIDE))
glide_multiplier *= sqrt(2)
moving.set_glide_size(MOVEMENT_ADJUSTED_GLIDE_SIZE(delay, glide_multiplier))
///Handles the actual move, overriden by children
///Returns FALSE if nothing happen, TRUE otherwise