Skip to content

Commit ee4b974

Browse files
authored
Increment ticksSinceMapLoad for all ticks (#134)
* Increment ticksSinceMapLoad for all ticks * Bump version
1 parent cef8cc3 commit ee4b974

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

RLBotCS/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if (args.Length > 0 && args[0] == "--version")
1111
{
1212
Console.WriteLine(
13-
"RLBotServer v5.beta.7.7\n"
13+
"RLBotServer v5.beta.7.8\n"
1414
+ $"Bridge {BridgeVersion.Version}\n"
1515
+ "@ https://www.rlbot.org & https://github.com/RLBot/core"
1616
);

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)