Преглед изворни кода

fix(c1-mixed): operation feedback equality sign

lairaalmas пре 5 месеци
родитељ
комит
59917e9be6
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      js/games/circleOne.js

+ 3 - 1
js/games/circleOne.js

@@ -684,7 +684,9 @@ const circleOne = {
           nominators[i] = n + 0;
           denominators[i] = m + 0;
           values[i] = nm;
-          valueReal += nm;
+          if (gameOperation === 'mixed')
+            valueReal = temp < 0 ? valueReal - nm : valueReal + nm;
+          else valueReal += nm;
         }
 
         for (let i = 0; i < blocks; i++) {