Browse Source

fix: using deprecated object to get correct answer

lairaalmas 1 year ago
parent
commit
150eef64e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/globals/globals_functions.js

+ 1 - 1
js/globals/globals_functions.js

@@ -154,7 +154,7 @@ const navigation = {
 const sendToDatabase = function (extraData) {
   // FOR MOODLE
   if (moodle) {
-    if (self.result) moodleVar.hits[curMapPosition - 1]++;
+    if (self.control.isCorrect) moodleVar.hits[curMapPosition - 1]++;
     else moodleVar.errors[curMapPosition - 1]++;
 
     moodleVar.time[curMapPosition - 1] += game.timer.elapsed;