Soft'N'Design Software
/
projects
/
tetris.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
147fdc5
)
two fixes on multi player mode
author
Laurent Mazet
<mazet@softndesign.org>
Sun, 4 Aug 2024 21:23:36 +0000
(23:23 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Sun, 4 Aug 2024 21:23:36 +0000
(23:23 +0200)
twoplayers.c
patch
|
blob
|
blame
|
history
diff --git
a/twoplayers.c
b/twoplayers.c
index c9dadd10f7ede23257c161bd802d5ab6b0782426..a387835324dd9c103aa63613fca1119c3a6399a6 100644
(file)
--- 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;