diff --git a/sudoku/play.php b/sudoku/play.php index a17df09..172782c 100755 --- a/sudoku/play.php +++ b/sudoku/play.php @@ -524,14 +524,10 @@ function game_sudoku_check_questions( $id, $game, $attempt, $sudoku, $finishatte if( ($query->id = $DB->get_field_select( 'game_queries', 'id', $select)) == 0){ die( "problem game_sudoku_check_questions (select=$select)"); continue; - } - - $name = "resp{$question->id}_"; - if( !isset( $responses->$name)) - continue; + } $grade = game_grade_responses( $question, $responses, 100, $answertext); - if( $grade < 50){ + if( $grade < 99){ //wrong answer game_update_queries( $game, $attempt, $query, $grade/100, $answertext); continue; diff --git a/version.php b/version.php index 47f094b..6cdda33 100755 --- a/version.php +++ b/version.php @@ -22,10 +22,10 @@ if( !isset( $plugin)) $useplugin = 2; $plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics) -$plugin->version = 20150714; // The current module version (Date: YYYYMMDDXX) +$plugin->version = 2015071402; // The current module version (Date: YYYYMMDDXX) $plugin->requires = 2010112400; // Requires Moodle 2.0 $plugin->cron = 0; // Period for cron to check this module (secs) -$plugin->release = '3.30.14'; +$plugin->release = '3.30.14.2'; if( $useplugin != 2) $module = $plugin;