Merge pull request #1022 from GAMMACASE/restart_warn_on_seg_removed

Remove restart warning for a segmented style
This commit is contained in:
Joe 2021-03-07 03:31:47 +00:00 committed by GitHub
commit 99ac213a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2657,7 +2657,7 @@ bool DeleteCheckpoint(int client, int index)
bool ShouldDisplayStopWarning(int client)
{
return (gCV_StopTimerWarning.BoolValue && Shavit_GetTimerStatus(client) != Timer_Stopped && Shavit_GetClientTime(client) > gCV_StopTimerWarning.FloatValue);
return (gCV_StopTimerWarning.BoolValue && Shavit_GetTimerStatus(client) != Timer_Stopped && Shavit_GetClientTime(client) > gCV_StopTimerWarning.FloatValue && !CanSegment(client));
}
void DoNoclip(int client)