Commit 3235ed67 authored by Colomban Wendling's avatar Colomban Wendling
Browse files

GTK client: don't try to start the game twice

parent 84a682dd
......@@ -131,16 +131,12 @@ test_game (OVCCGame *game)
gsize n_success = 0;
gsize n_failed = 0;
if (! ovcc_game_start (game)) {
g_warning ("cannot start game");
} else {
while (NULL != (tile = ovcc_game_get_current_tile (game))) {
if (! game_try_place_tile (game, tile)) {
g_warning ("Failed to place tile %u", ovcc_tile_get_id (tile));
n_failed ++;
} else {
n_success ++;
}
while (NULL != (tile = ovcc_game_get_current_tile (game))) {
if (! game_try_place_tile (game, tile)) {
g_warning ("Failed to place tile %u", ovcc_tile_get_id (tile));
n_failed ++;
} else {
n_success ++;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment