mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
Fix for replay saving.
Some replays would not overwrite because of disrepancy between record time and frame count. This commit makes it so the replay saves as long as it contains less frames than the old one, which usually results in less time spent running.
This commit is contained in:
parent
b223c67734
commit
4f34901613
@ -1236,9 +1236,9 @@ public void Shavit_OnFinish(int client, int style, float time, int jumps, int st
|
||||
float fWR = 0.0;
|
||||
Shavit_GetWRTime(style, fWR, track);
|
||||
|
||||
if(!view_as<bool>(gA_FrameCache[style][track][2]) && view_as<int>(gA_FrameCache[style][track][0] != 0))
|
||||
if(!view_as<bool>(gA_FrameCache[style][track][2]))
|
||||
{
|
||||
if(time >= fWR)
|
||||
if(view_as<int>(gA_FrameCache[style][track][0]) != 0 && gI_PlayerFrames[client] > gA_FrameCache[style][track][0])
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user