]> git.cworth.org Git - dvonn/blobdiff - dvonn.c
Clean up some errant trailing whitespace.
[dvonn] / dvonn.c
diff --git a/dvonn.c b/dvonn.c
index 709d12a3b939aad5f07a6f645976b39cadf7b7c9..fccbfbc5b6ee5d1fff71dc161cf0c005453167df 100644 (file)
--- a/dvonn.c
+++ b/dvonn.c
@@ -212,7 +212,7 @@ on_button_press_event (GtkWidget    *widget,
     }
 
     if (! game->has_selected) {
-       if (game->board.cells[x][y].type == game->board.player &&
+       if (dvonn_board_cell_owned_by (&game->board, x, y, game->board.player) &&
            ! dvonn_board_cell_surrounded (&game->board, x, y))
            {
                    game->has_selected = TRUE;
@@ -229,7 +229,7 @@ on_button_press_event (GtkWidget    *widget,
        dvonn_game_update_windows (game);
        return TRUE;
     }
-       
+
     if (dvonn_board_move (&game->board,
                          game->selected_x, game->selected_y,
                          x, y, &error))