Browse Source

New: Max compute time in crossword and cryptex

MOODLE_20_STABLE
Vasilis Daloukas 9 years ago
parent
commit
1902c85eff
  1. 3
      cross/cross_class.php
  2. 2
      mod_form.php

3
cross/cross_class.php

@ -130,8 +130,9 @@ class Cross
$nochange = 0; $nochange = 0;
$this->mtimelimit = $mtimelimit; $this->mtimelimit = $mtimelimit;
if( $this->mtimelimit == 30) if ($this->mtimelimit == 30) {
$this->mtimelimit = 27; $this->mtimelimit = 27;
}
for (;;) { for (;;) {
// Selects the size of the cross. // Selects the size of the cross.
$n20 = mt_rand( $this->mn20min, $this->mn20max); $n20 = mt_rand( $this->mn20min, $this->mn20max);

2
mod_form.php

@ -454,7 +454,7 @@ class mod_game_mod_form extends moodleform_mod {
if ($defaultvalues->param5 == null) { if ($defaultvalues->param5 == null) {
$defaultvalues->param5 = 1; $defaultvalues->param5 = 1;
} }
} }
if ($defaultvalues->gamekind == 'snakes') { if ($defaultvalues->gamekind == 'snakes') {
if (isset( $defaultvalues->param9)) { if (isset( $defaultvalues->param9)) {

Loading…
Cancel
Save