Browse Source

fix: franctions being rendered in incorrect order on end screen

lairaalmas 2 months ago
parent
commit
bd4ddb1f8d
1 changed files with 10 additions and 0 deletions
  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;