mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
[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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user