Skip to content

Commit

Permalink
[NO GBP] Fixes moth wing stabilization working in zero-g as long as y…
Browse files Browse the repository at this point in the history
…ou keep moving (tgstation#88552)

## About The Pull Request

Didn't run the check in stabilization code, also fixed a forgotten
comsig unreg

## Changelog
:cl:
fix: Fixed moth wing stabilization working in zero-g as long as you keep
moving
/:cl:
  • Loading branch information
SmArtKar authored Dec 23, 2024
1 parent 8a678dd commit f1cd77b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/datums/components/jetpack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
/datum/component/jetpack/proc/deactivate(datum/source, mob/old_user)
SIGNAL_HANDLER

UnregisterSignal(old_user, list(COMSIG_MOVABLE_PRE_MOVE, COMSIG_MOVABLE_MOVED, COMSIG_MOB_CLIENT_MOVE_NOGRAV, COMSIG_MOB_ATTEMPT_HALT_SPACEMOVE))
UnregisterSignal(old_user, list(COMSIG_MOVABLE_PRE_MOVE, COMSIG_MOVABLE_MOVED, COMSIG_MOB_CLIENT_MOVE_NOGRAV, COMSIG_MOB_ATTEMPT_HALT_SPACEMOVE, COMSIG_MOVABLE_DRIFT_BLOCK_INPUT))
STOP_PROCESSING(SSnewtonian_movement, src)
user = null

Expand Down Expand Up @@ -159,7 +159,7 @@

last_stabilization_tick = world.time

if (!should_trigger(user) || !stabilize || isnull(user.drift_handler))
if (!should_trigger(user) || !stabilize || !check_on_move.Invoke(FALSE) || isnull(user.drift_handler))
return

var/max_drift_force = MOVE_DELAY_TO_DRIFT(user.cached_multiplicative_slowdown)
Expand Down

0 comments on commit f1cd77b

Please sign in to comment.