From 66ead30cd87b869b080dffe4c87c4f94d4e4ae7d Mon Sep 17 00:00:00 2001 From: shavitush Date: Thu, 13 Jul 2017 19:44:14 +0300 Subject: [PATCH] Made it so every style WRs are saved regardless of if the noreplay flag is set. --- scripting/shavit-replay.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripting/shavit-replay.sp b/scripting/shavit-replay.sp index 4a0633ce..f29fb46e 100644 --- a/scripting/shavit-replay.sp +++ b/scripting/shavit-replay.sp @@ -789,7 +789,7 @@ public void Shavit_OnFinish(int client, BhopStyle style, float time) public void Shavit_OnWorldRecord(int client, BhopStyle style, float time) { - if(!ReplayEnabled(style) || gI_PlayerFrames[client] == 0) + if(gI_PlayerFrames[client] == 0) { return; } @@ -802,11 +802,11 @@ public void Shavit_OnWorldRecord(int client, BhopStyle style, float time) } gA_Frames[style] = gA_PlayerFrames[client].Clone(); - ClearFrames(client); + SaveReplay(style); - if(!gB_CentralBot && gI_ReplayBotClient[style] != 0) + if(ReplayEnabled(style) && !gB_CentralBot && gI_ReplayBotClient[style] != 0) { UpdateReplayInfo(gI_ReplayBotClient[style], view_as(style), time); CS_RespawnPlayer(gI_ReplayBotClient[style]);