From ce79ee81e7d4e41c83612748160c85c0b0effdcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Tue, 31 Mar 2015 16:31:03 -0300 Subject: user coord getters --- lib/board.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/board.c') diff --git a/lib/board.c b/lib/board.c index a53c356..499478a 100644 --- a/lib/board.c +++ b/lib/board.c @@ -135,15 +135,15 @@ int board_delete(Board b) { } Square board_get_square(Board b, Coord c) { - short x = _from_col(c.col); - short y = _from_row(c.row); + short x = _from_col(coord_get_col(c)); + short y = _from_row(coord_get_row(c)); return b[x][y]; } Board board_set_square(Board b, Coord c, Square s) { - short x = _from_col(c.col); - short y = _from_row(c.row); + short x = _from_col(coord_get_col(c)); + short y = _from_row(coord_get_row(c)); b[x][y] = s; -- cgit v1.2.3