[NO GBP] Fixes lattices causing spacemove jank (#87320)

## About The Pull Request
Lattices blocking space movement was handled on /atom/movable while my
comsigs were on /mob, thus making lattices overrule all force code. Mobs
now properly handle them via pushoff code.

## Why Is This Good For The Game
Lattices are very jarring to move along rn, this was not intentional.

## Changelog
🆑
fix: Moving along lattices in space with a jetpack on no longer causes
your screen to jerk
/🆑
This commit is contained in:
SmArtKar
2024-10-23 12:48:49 -07:00
committed by GitHub
parent 38d5642256
commit e41b5acf8e
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -205,7 +205,7 @@
/datum/drift_handler/proc/attempt_halt(mob/source, movement_dir, continuous_move, atom/backup)
SIGNAL_HANDLER
if (get_dir(source, backup) == movement_dir || source.loc == backup.loc)
if ((backup.density || !backup.CanPass(source, get_dir(backup, source))) && (get_dir(source, backup) == movement_dir || source.loc == backup.loc))
if (drift_force >= INERTIA_FORCE_THROW_FLOOR)
source.throw_at(backup, 1, floor(1 + (drift_force - INERTIA_FORCE_THROW_FLOOR) / INERTIA_FORCE_PER_THROW_FORCE), spin = FALSE)
return