From: Laurent Mazet Date: Sun, 4 Aug 2024 21:23:36 +0000 (+0200) Subject: two fixes on multi player mode X-Git-Tag: v1.3~5^2~4 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=af02b5c0af9d8dfd46578bdfbf550cd2fcad0b75;p=tetris.git two fixes on multi player mode --- diff --git a/twoplayers.c b/twoplayers.c index c9dadd1..a387835 100644 --- a/twoplayers.c +++ b/twoplayers.c @@ -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, ¤t_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;