diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-04-10 20:51:51 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-04-10 20:51:51 +0300 |
commit | 6c88febbe0cff8960bc6f2e0bcdfc89777a5f72b (patch) | |
tree | 3c6062bc33b4affcc9f9f765e621e71f4493eda7 /src/main.c | |
parent | 8c3124e919d9f8e7118fb05f4341c12e54b68c72 (diff) | |
download | carcassonne-engine-c-6c88febbe0cff8960bc6f2e0bcdfc89777a5f72b.tar.gz |
feat: support separator (+) feature
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,7 +8,7 @@ void draw_board(BoardUnit* board, WINDOW* win) { for (int row = 0; row < BOARD_ROW_UNITS; row++) { for (int i = 0; i < BOARD_ROW_UNITS; i++) { int index = BOARD_ROW_UNITS * row + i; - if (board[index].feature == EMPTY && is_center_index(index)) waddch(win, '*'); + if (board[index].feature == EMPTY && is_center_index(index)) waddch(win, '.'); else waddch(win, board[index].feature | COLOR_PAIR(board[index].structure_group % 6)); } } @@ -47,7 +47,7 @@ int main() { place_tile(tile, translate_coordinate(BOARD_WIDTH * BOARD_WIDTH / 2), board, 1); Tile tileset[5] = { - { "RRRR", 'R', 0 }, + { "RRRR", '+', 0 }, { "FCCC", 'C', 0 }, { "FFFC", 'C', 0 }, { "CCRR", '*', 0 }, |