/*
* Netris -- A free networked version of T*tris
- * Copyright (C) 1994,1995,1996 Mark H. Weaver <mhw@netris.org>
+ * Copyright (C) 1994-1996,1999 Mark H. Weaver <mhw@netris.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: board.c,v 1.14 1996/02/09 08:22:08 mhw Exp $
+ * $Id: board.c,v 1.15 1999/05/16 06:56:24 mhw Exp $
*/
#include "netris.h"
ExtFunc void InitBoard(int scr)
{
+ int s,w,h;
+
+ for(s = 0 ; s < MAX_SCREENS ; s++)
+ for(h = 0 ; h < MAX_BOARD_HEIGHT ; h++)
+ for(w = 0 ; w < MAX_BOARD_WIDTH ; w++) {
+ board[s][h][w] = 0;
+ oldBoard[s][h][w] = 0;
+ changed[s][h] = 0;
+ falling[s][w] = 0;
+ oldFalling[s][w] = 0;
+ }
+
+
boardHeight[scr] = MAX_BOARD_HEIGHT;
boardVisible[scr] = 20;
boardWidth[scr] = 10;
CopyLine(scr, y, y + count);
for (y = 0; y < count; ++y)
for (x = 0; x < boardWidth[scr]; ++x)
- SetBlock(scr, y, x, (x == column) ? BT_none : BT_piece1);
+ SetBlock(scr, y, x, (x == column) ? BT_none : BT_white);
curY[scr] += count;
}