This commit is contained in:
Lorenzo Bianchi 2023-05-26 15:36:13 +02:00
parent a086840975
commit 75bec5b425
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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) {