]> git.localhorst.tv Git - alttp.git/commitdiff
allow 0 and 23 as GTBK guesses
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 7 May 2024 13:10:20 +0000 (15:10 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 7 May 2024 13:10:20 +0000 (15:10 +0200)
app/Models/Channel.php

index c6dfb6aaa19b57a019b51dba4f4167b49382e094..f50c267eb8a3cae89bfbba84bada33f682a86862 100644 (file)
@@ -222,7 +222,7 @@ class Channel extends Model {
                $transformed = $this->transformGuess($solution);
                if ($this->guessing_type == 'gtbk') {
                        $int_solution = intval($transformed);
-                       return is_numeric($transformed) && $int_solution > 0 && $int_solution < 23;
+                       return is_numeric($transformed) && $int_solution >= 0 && $int_solution <= 23;
                }
                return false;
        }