commit2
This commit is contained in:
parent
a086840975
commit
75bec5b425
|
@ -72,10 +72,9 @@ int main(int argc, char *argv[]){
|
|||
|
||||
// PARTITA
|
||||
printf(PSERVER "Starting game\n");
|
||||
printf("%d %d\n", _INPUT_S.collums, _INPUT_S.rows);
|
||||
setCollums(_INPUT_S.collums);
|
||||
setRows(_INPUT_S.rows);
|
||||
|
||||
_ROWS = _INPUT_S.rows;
|
||||
_COLLUMS = _INPUT_S.collums;
|
||||
printf("%d %d\n", _ROWS, _COLLUMS);
|
||||
for (int i=0; i < _ROWS * _COLLUMS; i++) { //FIXME: tmp
|
||||
_BOARD[i] = EMPTY;
|
||||
|
|
|
@ -6,9 +6,7 @@
|
|||
tile_t *_BOARD;
|
||||
|
||||
void setRows(int rows) {
|
||||
printf("%d\n", rows);
|
||||
_ROWS = rows;
|
||||
printf("%d\n", _ROWS);
|
||||
}
|
||||
|
||||
void setCollums(int collums) {
|
||||
|
|
Loading…
Reference in New Issue