Skip to content

Commit

Permalink
Fix: Incorrect eventType in spectator whenever player restarts map an…
Browse files Browse the repository at this point in the history
…d changes it right after
  • Loading branch information
Piotrekol committed Nov 4, 2022
1 parent 8bc9417 commit c4805cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/OsuMemoryEventSource/MemoryListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void Tick(List<StructuredOsuMemoryReader> clientReaders, bool sendEvents)
//"good enough" replay retry detection.
if (isReplay && _currentStatus == OsuMemoryStatus.Playing && _lastTime > currentTime && DateTime.UtcNow > _nextReplayRetryAllowedAt)
{
osuEventType = OsuEventType.PlayChange;
osuEventType = mapIdDiffers || mapHashDiffers || gameModeDiffers || modsDiffer ? OsuEventType.MapChange : OsuEventType.PlayChange;
_nextReplayRetryAllowedAt = DateTime.UtcNow.AddMilliseconds(500);
}

Expand Down

0 comments on commit c4805cc

Please sign in to comment.