mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
allow recording replays past 5 mins lol
This commit is contained in:
parent
33b1ddc71a
commit
987f46ec50
1 changed files with 6 additions and 6 deletions
|
|
@ -291,12 +291,12 @@ class Replay {
|
|||
|
||||
public function endFrame() {
|
||||
// Do not record frames beyond par time/5 minutes to limit file size, if we aren't explicitly recording
|
||||
if (!MarbleGame.instance.toRecord
|
||||
&& currentRecordFrame != null
|
||||
&& currentRecordFrame.clockTime > Math.min(300, MarbleGame.instance.world.mission.qualifyTime)) {
|
||||
currentRecordFrame = null;
|
||||
return;
|
||||
}
|
||||
// if (!MarbleGame.instance.toRecord
|
||||
// && currentRecordFrame != null
|
||||
// && currentRecordFrame.clockTime > Math.min(300, MarbleGame.instance.world.mission.qualifyTime)) {
|
||||
// currentRecordFrame = null;
|
||||
// return;
|
||||
// }
|
||||
if (currentRecordFrame != null)
|
||||
frames.push(currentRecordFrame);
|
||||
currentRecordFrame = null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue