Skip to content

Commit 727060f

Browse files
committed
Increment ticksSinceMapLoad for all ticks
1 parent cef8cc3 commit 727060f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

RLBotCS/Server/BridgeHandler.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,12 @@ private async Task HandleServer()
8888
float deltaTime = _context.GameState.SecondsElapsed - prevTime;
8989
bool timeAdvanced = deltaTime > 0.001;
9090
if (timeAdvanced)
91-
{
9291
_context.ticksSkipped = 0;
93-
_context.ticksSinceMapLoad += 1;
94-
}
9592
else
9693
_context.ticksSkipped++;
9794

95+
_context.ticksSinceMapLoad += 1;
96+
9897
if (timeAdvanced)
9998
_context.PerfMonitor.AddRLBotSample(deltaTime);
10099

0 commit comments

Comments
 (0)