Skip to content

Commit

Permalink
fix auto aco timing (#2431)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewokswagger authored and sleepyyapril committed Dec 26, 2024
1 parent 1931832 commit fee041e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Content.Server/DeltaV/Station/Systems/CaptainStateSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Robust.Shared.Configuration;
using Robust.Shared.Prototypes;
using System.Linq;
using Microsoft.CodeAnalysis.CSharp.Syntax;

namespace Content.Server.DeltaV.Station.Systems;

Expand Down Expand Up @@ -40,6 +41,8 @@ public override void Update(float frameTime)
base.Update(frameTime);

var currentTime = _ticker.RoundDuration(); // Caching to reduce redundant calls
if (currentTime < _acoDelay) // Avoid timing issues. No need to run before _acoDelay is reached anyways.
return;
var query = EntityQueryEnumerator<CaptainStateComponent>();
while (query.MoveNext(out var station, out var captainState))
{
Expand Down

0 comments on commit fee041e

Please sign in to comment.