Skip to content

Commit

Permalink
Use required number of legs to determine if standing fails
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryNorfolk committed Jan 17, 2025
1 parent 90629ee commit 91a25b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Body/Systems/SharedBodySystem.Body.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ private void OnProfileLoadFinished(EntityUid uid, BodyComponent component, Profi

private void OnStandAttempt(Entity<BodyComponent> ent, ref StandAttemptEvent args)
{
if (ent.Comp.LegEntities.Count == 0)
if (ent.Comp.LegEntities.Count < ent.Comp.RequiredLegs) // DeltaV
args.Cancel();
}

Expand Down

0 comments on commit 91a25b1

Please sign in to comment.