Skip to content

Commit

Permalink
Update AtmosphereSystem.HighPressureDelta.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Jul 2, 2024
1 parent bc25b78 commit c5946ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ public void ExperiencePressureDifference(
if (throwTarget != EntityCoordinates.Invalid)
{
var pos = throwTarget.ToMap(EntityManager, _transformSystem).Position - xform.WorldPosition + dirVec;
_throwing.TryThrow(uid, pos.Normalized() * moveForce, moveForce);
_throwing.TryThrow(uid, pos.Normalized() * MathF.Min(moveForce, SpaceWindMaxVelocity), moveForce);
}
else
{
_throwing.TryThrow(uid, dirVec.Normalized() * moveForce, moveForce);
_throwing.TryThrow(uid, dirVec.Normalized() * MathF.Min(moveForce, SpaceWindMaxVelocity), moveForce);
}

component.LastHighPressureMovementAirCycle = cycle;
Expand Down

0 comments on commit c5946ee

Please sign in to comment.