fix init next tetrinos display
authorLaurent Mazet <mazet@softndesign.org>
Tue, 6 Aug 2024 20:44:01 +0000 (22:44 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 6 Aug 2024 20:44:01 +0000 (22:44 +0200)
oneplayer.c
twoplayers.c

index 3cb9d6c00f5cdd9c2971e35b57a1ba53e42a258e..8b9d2770ad85695be85724192d8270a5a715dd8d 100644 (file)
@@ -120,7 +120,8 @@ int oneplayer (int width, int height, int scale, int chrono, char *filename)
             break;
         case 1:
             halfdelay (1);
-
+            boardwindow (nextblock, 1);
+            displayblock (nextblock, blocks + next, -1, -1);
             if (blockend.tv_sec && isovertime (&blockend)) {
                 if (testvalidpos (board, cblock, xblock, yblock + 1)) {
                     yblock++;
index 36bc306c4694d437645dbc50dcc972d98568fa52..2fee681e81ecf5793d77206c1ef72ccddc563897 100644 (file)
@@ -109,6 +109,8 @@ int twoplayers (int width, int height, int scale)
             break;
         case 1:
             halfdelay (1);
+            boardwindow (nextblock, 1);
+            displayblock (nextblock, blocks + next, -1, -1);
             if (blockend_left.tv_sec && isovertime (&blockend_left)) {
                 if (testvalidpos (board_left, cblock_left, xblock_left, yblock_left + 1)) {
                     yblock_left++;