From 40beef23a6d3cb13feb3d26d29ddaabf8c0a2e6a Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 11 Apr 2021 17:07:50 +0100 Subject: [PATCH] fixed bailout not working in infinite custom tests. closes #1226 --- src/js/commandline-lists.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/commandline-lists.js b/src/js/commandline-lists.js index bd2eb5e35..c1bcfa98b 100644 --- a/src/js/commandline-lists.js +++ b/src/js/commandline-lists.js @@ -22,14 +22,14 @@ function canBailOut() { return ( (Config.mode === "custom" && CustomText.isWordRandom && - CustomText.word >= 5000) || + (CustomText.word >= 5000 || CustomText.word == 0)) || (Config.mode === "custom" && !CustomText.isWordRandom && !CustomText.isTimeRandom && CustomText.text.length >= 5000) || (Config.mode === "custom" && CustomText.isTimeRandom && - CustomText.time >= 3600) || + (CustomText.time >= 3600 || CustomText.time == 0)) || (Config.mode === "words" && Config.words >= 5000) || Config.words === 0 || (Config.mode === "time" && (Config.time >= 3600 || Config.time === 0)) ||