Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Update ThrusterSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonsant authored May 4, 2024
1 parent ff4b7a9 commit e04dd4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Content.Server/Shuttles/Systems/ThrusterSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public void EnableThruster(EntityUid uid, ThrusterComponent component, Transform
shape.Set(component.BurnPoly);
_fixtureSystem.TryCreateFixture(uid, shape, BurnFixture, hard: false, collisionLayer: (int) CollisionGroup.FullTileMask, body: physicsComponent);
}
RefreshCenter(uid, shuttleComponent, IndexToDirectionFlag(direction));
RefreshCenter(uid, shuttleComponent, IndexToDirectionFlag(direction), changedDirection);

Check failure on line 326 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'changedDirection' does not exist in the current context

Check failure on line 326 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'changedDirection' does not exist in the current context

Check failure on line 326 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'changedDirection' does not exist in the current context

Check failure on line 326 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'changedDirection' does not exist in the current context

Check failure on line 326 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'changedDirection' does not exist in the current context

Check failure on line 326 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'changedDirection' does not exist in the current context

Check failure on line 326 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'changedDirection' does not exist in the current context

Check failure on line 326 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'changedDirection' does not exist in the current context
break;
case ThrusterType.Angular:
shuttleComponent.AngularThrust += component.Thrust;
Expand Down Expand Up @@ -351,10 +351,10 @@ public void EnableThruster(EntityUid uid, ThrusterComponent component, Transform
/// <summary>
/// Refreshes the center of thrust for movement calculations.
/// </summary>
private void RefreshCenter(EntityUid uid, ShuttleComponent shuttle, DirectionFlag changedDirection)
private void RefreshCenter(EntityUid uid, ShuttleComponent shuttle, DirectionFlag changedDirection, DirectionFlag? originalChangedDirection = null)
{
var center = Vector2.Zero;
var thrustQuery = GetEntityQuery<ThrusterComponent>();
var thrustQuery = GetEntityQuery<ThrusterComponent>();
var xformQuery = GetEntityQuery<TransformComponent>();

var index = GetFlagIndex(changedDirection);
Expand Down Expand Up @@ -413,7 +413,7 @@ public void DisableThruster(EntityUid uid, ThrusterComponent component, EntityUi
shuttleComponent.BaseLinearThrust[direction] -= component.BaseThrust;
DebugTools.Assert(shuttleComponent.LinearThrusters[direction].Contains(uid));
shuttleComponent.LinearThrusters[direction].Remove(uid);
RefreshCenter(uid, shuttleComponent, IndexToDirectionFlag(direction));
RefreshCenter(uid, shuttleComponent, IndexToDirectionFlag(direction), changedDirection);

Check failure on line 416 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'changedDirection' does not exist in the current context

Check failure on line 416 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'changedDirection' does not exist in the current context

Check failure on line 416 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'changedDirection' does not exist in the current context

Check failure on line 416 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'changedDirection' does not exist in the current context

Check failure on line 416 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'changedDirection' does not exist in the current context

Check failure on line 416 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'changedDirection' does not exist in the current context

Check failure on line 416 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'changedDirection' does not exist in the current context

Check failure on line 416 in Content.Server/Shuttles/Systems/ThrusterSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'changedDirection' does not exist in the current context
break;
case ThrusterType.Angular:
shuttleComponent.AngularThrust -= component.Thrust;
Expand Down

0 comments on commit e04dd4c

Please sign in to comment.