printf ("There are %d tiles in the deck\n" , deck->num_tiles);
}
+
static void deck_draw(game_t *game, cairo_t *cr)
{
- int i, j;
-
- for (i = 0; i < 8; ++i)
+ int i;
+ for (i = 0; i < game->deck.num_tiles; i++)
{
- for (j = 0; j < 13; ++j)
- {
- tile_draw(game, &game->deck.tiles[j + (i * 13)], cr);
- }
+ tile_draw(game, &game->deck.tiles[i], cr);
}
}