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

Commit

Permalink
Fixed stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FireNameFN committed May 12, 2024
1 parent bd773f5 commit e2bd970
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Content.Server/Shuttles/Systems/ShuttleConsoleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,11 @@ public void ClearPilots(ShuttleConsoleComponent component)
RemovePilot(pilot, pilotComponent);
}

// Corvax-Frontier: Commented to fix stack overflow

// Frontier - Adds EMP functionality - PR 526
// This makes the Shuttle Console kick pilots like its removed, to make sure EMP in effect.
var disabled = EntityQueryEnumerator<EmpDisabledComponent, ShuttleConsoleComponent>();
/*var disabled = EntityQueryEnumerator<EmpDisabledComponent, ShuttleConsoleComponent>();
while (disabled.MoveNext(out var uid, out _, out var comp))
{
if (comp.TimeoutFromEmp <= _timing.CurTime)
Expand All @@ -386,7 +388,7 @@ public void ClearPilots(ShuttleConsoleComponent component)
}
else
comp.MainBreakerEnabled = true;
}
}*/
}

/// <summary>
Expand Down

0 comments on commit e2bd970

Please sign in to comment.