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

Commit

Permalink
Merge pull request #150 from FireNameFN/StackOverflowFix
Browse files Browse the repository at this point in the history
Fixed stack overflow
  • Loading branch information
Vonsant authored May 13, 2024
2 parents afac39d + e2bd970 commit 1408e14
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 1408e14

Please sign in to comment.