-Index: netris-0.52/curses.c
+Author: Tomas Berndtsson <tomas@nocrew.org> vim:ft=diff:
+Description: Add multi game support with scoring
+
+Index: b/curses.c
===================================================================
---- netris-0.52.orig/curses.c
-+++ netris-0.52/curses.c
+--- a/curses.c
++++ b/curses.c
@@ -201,6 +201,8 @@ ExtFunc void InitScreen(int scr)
for (y = boardVisible[scr] - 1; y >= 0; --y) {
move(boardYPos[scr] - y, boardXPos[scr] - 1);
move(boardYPos[scr] - y, boardXPos[scr] + 2 * boardWidth[scr]);
addch('|');
}
-@@ -256,6 +258,23 @@ ExtFunc void PlotUnderline(int scr, int
+@@ -256,6 +258,23 @@ ExtFunc void PlotUnderline(int scr, int
ExtFunc void ShowDisplayInfo(void)
{
move(statusYPos - 9, statusXPos);
printw("Seed: %d", initSeed);
clrtoeol();
-Index: netris-0.52/netris.h
+Index: b/netris.h
===================================================================
---- netris-0.52.orig/netris.h
-+++ netris-0.52/netris.h
+--- a/netris.h
++++ b/netris.h
@@ -65,7 +65,7 @@ typedef long netint4;
#define DEFAULT_PORT 9284 /* Very arbitrary */
EXT char scratch[1024];
extern ShapeOption stdOptions[];
-Index: netris-0.52/util.c
+Index: b/util.c
===================================================================
---- netris-0.52.orig/util.c
-+++ netris-0.52/util.c
+--- a/util.c
++++ b/util.c
@@ -74,7 +74,7 @@ ExtFunc void Usage(void)
" -p <port> Set port number (default is %d)\n"
" -k <keys> Remap keys. The argument is a prefix of the string\n"
" \"^\" prefixes controls. (default is \"%s\")\n"
" -i <sec> Set the step-down interval, in seconds\n"
" -r <robot> Execute <robot> (a command) as a robot controlling\n"
-Index: netris-0.52/game.c
+Index: b/game.c
===================================================================
---- netris-0.52.orig/game.c
-+++ netris-0.52/game.c
+--- a/game.c
++++ b/game.c
@@ -28,11 +28,11 @@
#include <netinet/in.h>
return 0;
}
-Index: netris-0.52/board.c
+Index: b/board.c
===================================================================
---- netris-0.52.orig/board.c
-+++ netris-0.52/board.c
+--- a/board.c
++++ b/board.c
@@ -36,6 +36,18 @@ static int oldFalling[MAX_SCREENS][MAX_B
ExtFunc void InitBoard(int scr)