allow recording replays past 5 mins lol

This commit is contained in:
RandomityGuy 2025-03-18 18:21:58 +05:30
parent 33b1ddc71a
commit 987f46ec50

View file

@ -291,12 +291,12 @@ class Replay {
public function endFrame() { public function endFrame() {
// Do not record frames beyond par time/5 minutes to limit file size, if we aren't explicitly recording // Do not record frames beyond par time/5 minutes to limit file size, if we aren't explicitly recording
if (!MarbleGame.instance.toRecord // if (!MarbleGame.instance.toRecord
&& currentRecordFrame != null // && currentRecordFrame != null
&& currentRecordFrame.clockTime > Math.min(300, MarbleGame.instance.world.mission.qualifyTime)) { // && currentRecordFrame.clockTime > Math.min(300, MarbleGame.instance.world.mission.qualifyTime)) {
currentRecordFrame = null; // currentRecordFrame = null;
return; // return;
} // }
if (currentRecordFrame != null) if (currentRecordFrame != null)
frames.push(currentRecordFrame); frames.push(currentRecordFrame);
currentRecordFrame = null; currentRecordFrame = null;