From 1902c85effd7910be3e7303ee56c3b4b30219984 Mon Sep 17 00:00:00 2001 From: Vasilis Daloukas Date: Sat, 5 Mar 2016 09:10:49 +0200 Subject: [PATCH] New: Max compute time in crossword and cryptex --- cross/cross_class.php | 3 ++- mod_form.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cross/cross_class.php b/cross/cross_class.php index fcc44d5..ec97248 100755 --- a/cross/cross_class.php +++ b/cross/cross_class.php @@ -130,8 +130,9 @@ class Cross $nochange = 0; $this->mtimelimit = $mtimelimit; - if( $this->mtimelimit == 30) + if ($this->mtimelimit == 30) { $this->mtimelimit = 27; + } for (;;) { // Selects the size of the cross. $n20 = mt_rand( $this->mn20min, $this->mn20max); diff --git a/mod_form.php b/mod_form.php index 84441dd..a050241 100755 --- a/mod_form.php +++ b/mod_form.php @@ -454,7 +454,7 @@ class mod_game_mod_form extends moodleform_mod { if ($defaultvalues->param5 == null) { $defaultvalues->param5 = 1; } - } + } if ($defaultvalues->gamekind == 'snakes') { if (isset( $defaultvalues->param9)) {