two fixes on multi player mode
authorLaurent Mazet <mazet@softndesign.org>
Sun, 4 Aug 2024 21:23:36 +0000 (23:23 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sun, 4 Aug 2024 21:23:36 +0000 (23:23 +0200)
twoplayers.c

index c9dadd10f7ede23257c161bd802d5ab6b0782426..a387835324dd9c103aa63613fca1119c3a6399a6 100644 (file)
@@ -173,6 +173,8 @@ int twoplayers (int width, int height, int scale)
                     mode = 2;
                 } else {
                     cblock_right = drawblock (board_right, blocks, nb_blocks, cblock_right, &current_right, &xblock_right, &yblock_right, &next);
+                    boardwindow (nextblock, 1);
+                    displayblock (nextblock, blocks + next, -1, -1);
                 }
                 settle_right = 0;
             }
@@ -306,6 +308,7 @@ int twoplayers (int width, int height, int scale)
             case 0:
                 mode = 1;
                 setendtime (&blockend_left, speed);
+                setendtime (&blockend_right, speed);
                 break;
             case 1:
                 mode = 0;