[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
@@ -145,7 +145,7 @@
if (get_dir(source, backup) == movement_dir || source.loc == backup.loc)
return
if (!can_fly(source) || !source.client.intended_direction)
if (!can_fly(source) || !source.client.intended_direction || (source.client.intended_direction & get_dir(source, backup)))
return
return COMPONENT_PREVENT_SPACEMOVE_HALT
+1 -1
View File
@@ -82,7 +82,7 @@
if (get_dir(source, backup) == movement_dir || source.loc == backup.loc)
return
if (!allow_flight() || !source.client.intended_direction)
if (!allow_flight() || !source.client.intended_direction || (source.client.intended_direction & get_dir(source, backup)))
return
return COMPONENT_PREVENT_SPACEMOVE_HALT