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:
shavit 2017-12-24 23:39:50 +02:00
parent b223c67734
commit 4f34901613

View File

@ -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;
}