Skip to content

Commit

Permalink
Fix Fent Zombies in Medbay (#1614)
Browse files Browse the repository at this point in the history
(fix medbays making people go up/down if they speak)

# Changelog

<!--
You can add an author after the `:cl:` to change the name that appears
in the changelog (ex: `:cl: Death`)
Leaving it blank will default to your GitHub display name
This includes all available types for the changelog
-->

:cl:
- fix: The medbay fent zombie epidemic is now fixed.

Co-authored-by: BarryNorfolk <[email protected]>
  • Loading branch information
sleepyyapril and BarryNorfolk authored Jan 20, 2025
1 parent 82a26e2 commit 6a9945a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ private void Buckle(Entity<BuckleComponent> buckle, Entity<StrapComponent> strap

_audio.PlayPredicted(strap.Comp.BuckleSound, strap, user);

SetBuckledTo(buckle, strap!);
Appearance.SetData(strap, StrapVisuals.State, true);
Appearance.SetData(buckle, BuckleVisuals.Buckled, true);
_rotationVisuals.SetHorizontalAngle(buckle.Owner, strap.Comp.Rotation);
Expand All @@ -367,6 +366,8 @@ private void Buckle(Entity<BuckleComponent> buckle, Entity<StrapComponent> strap
break;
}

SetBuckledTo(buckle, strap!); // DeltaV - Allow standing system to handle Down/Stand before buckling

var ev = new StrappedEvent(strap, buckle);
RaiseLocalEvent(strap, ref ev);

Expand Down

0 comments on commit 6a9945a

Please sign in to comment.