[NO GBP] Fixes wings and jetpacks sometimes preventing you from opening doors (#87741)

## About The Pull Request
I hate this timeline. What title says, makes jetpacks and wings allow
you to bump into things you're moving into.

## Why It's Good For The Game
This feels awful and requires you to stop pressing movement keys for a
moment before resuming movement to get out of the "stuck" state

## Changelog
🆑
fix: Fixed wings and jetpacks sometimes preventing you from opening
doors
/🆑
This commit is contained in:
SmArtKar
2024-11-09 11:08:51 +01:00
committed by GitHub
parent 8621c7a9c2
commit 4cede34a49
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -164,6 +164,12 @@
/datum/component/jetpack/proc/on_pushoff(mob/source, movement_dir, continuous_move, atom/backup)
SIGNAL_HANDLER
if (get_dir(source, backup) == movement_dir || source.loc == backup.loc)
return
if (!source.client.intended_direction || (source.client.intended_direction & get_dir(source, backup)))
return
if (!should_trigger(source) || !check_on_move.Invoke(FALSE))
return