mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 11:28:26 +00:00
Made it so every style WRs are saved regardless of if the noreplay flag is set.
This commit is contained in:
parent
37f331ba2c
commit
66ead30cd8
@ -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]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user