Skip to content

Commit

Permalink
Prevent speed from going below 1%
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaPhant committed Sep 28, 2021
1 parent 88ce0f5 commit 2ae69fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ module.exports = {
audio = false;
}else if(arg.endsWith('%')){
speed = parseInt(arg) / 100;
speed = Math.max(0.01, speed);
}else if(arg.endsWith('fps')){
let _fps = parseInt(arg);
if(!isNaN(_fps)){
Expand Down

0 comments on commit 2ae69fe

Please sign in to comment.