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

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);

Loading…
Cancel
Save