diff options
author | Raúl Benencia <rul@kalgan.cc> | 2015-03-31 16:31:03 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2015-03-31 16:31:03 -0300 |
commit | ce79ee81e7d4e41c83612748160c85c0b0effdcd (patch) | |
tree | 3f6f9f22d721ca135a941a0b3c5a517844cb646b /lib | |
parent | e35445bfa3a3ba25a6f8f454f6ba4f1e34913ef4 (diff) |
user coord getters
Diffstat (limited to 'lib')
-rw-r--r-- | lib/board.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |