Made it so every style WRs are saved regardless of if the noreplay flag is set.

This commit is contained in:
shavitush 2017-07-13 19:44:14 +03:00
parent 37f331ba2c
commit 66ead30cd8

View File

@ -789,7 +789,7 @@ public void Shavit_OnFinish(int client, BhopStyle style, float time)
public void Shavit_OnWorldRecord(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; return;
} }
@ -802,11 +802,11 @@ public void Shavit_OnWorldRecord(int client, BhopStyle style, float time)
} }
gA_Frames[style] = gA_PlayerFrames[client].Clone(); gA_Frames[style] = gA_PlayerFrames[client].Clone();
ClearFrames(client); ClearFrames(client);
SaveReplay(style); SaveReplay(style);
if(!gB_CentralBot && gI_ReplayBotClient[style] != 0) if(ReplayEnabled(style) && !gB_CentralBot && gI_ReplayBotClient[style] != 0)
{ {
UpdateReplayInfo(gI_ReplayBotClient[style], view_as<int>(style), time); UpdateReplayInfo(gI_ReplayBotClient[style], view_as<int>(style), time);
CS_RespawnPlayer(gI_ReplayBotClient[style]); CS_RespawnPlayer(gI_ReplayBotClient[style]);