Explorar o código

fix: franctions being rendered in incorrect order on end screen

lairaalmas hai 2 meses
pai
achega
bd4ddb1f8d
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      js/games/squareTwo.js

+ 10 - 0
js/games/squareTwo.js

@@ -342,6 +342,16 @@ const squareTwo = {
         self.blocks.top.list.length,
         self.blocks.bottom.list.length,
       ];
+
+      if (gameMode === 'b') {
+        const leftNom = nominators[0];
+        const leftDenom = denominators[0];
+        nominators[0] = nominators[1];
+        denominators[0] = denominators[1];
+        nominators[1] = leftNom;
+        denominators[1] = leftDenom;
+      }
+
       const renderList = [];
 
       const padding = 100;