Skip to content
2 changes: 2 additions & 0 deletions apps/counterstrikesharp/src/FiveStack.Commands/Match.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public void SetMatchState(CCSPlayerController? player, CommandInfo command)
);
return;
}

_gameBackupRounds.AbandonRestore();
}

match?.UpdateMapStatus(status);
Expand Down
4 changes: 2 additions & 2 deletions apps/counterstrikesharp/src/FiveStack.Events/RoundEnd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public HookResult OnRoundOfficiallyEnded(EventRoundOfficiallyEnded @event, GameE
match.UpdateMapStatus(eMapStatus.Overtime);
}

if (_gameBackupRounds.IsResettingRound())
if (_gameBackupRounds.HoldsRoundResults())
{
_logger.LogInformation("OnRoundOfficiallyEnded skipping capture: restoring round");
return HookResult.Continue;
Expand All @@ -55,7 +55,7 @@ public HookResult OnRoundOfficiallyEnded(EventRoundOfficiallyEnded @event, GameE
[GameEventHandler]
public HookResult OnRoundEnd(EventRoundEnd @event, GameEventInfo info)
{
if (_gameBackupRounds.IsResettingRound())
if (_gameBackupRounds.HoldsRoundResults())
{
_logger.LogInformation(
$"OnRoundEnd ignored (restoring round): message={@event.Message}"
Expand Down
2 changes: 1 addition & 1 deletion apps/counterstrikesharp/src/FiveStack.Events/RoundStart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public HookResult OnRoundStart(EventRoundStart @event, GameEventInfo info)
return HookResult.Continue;
}

if (_gameBackupRounds.IsResettingRound())
if (_gameBackupRounds.HoldsRoundResults())
{
// A restart can unpause the round the hold paused.
if (_gameBackupRounds.IsHoldingForRestore())
Expand Down
Loading
Loading