X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=kub.c;h=a2e34a11924a99ae3f17af7c4826d9284bfd0957;hb=8b60f53889d02bb82812b3cc866018dc792d1455;hp=afaf21106396e0c93510bbce678229fc4004eb3e;hpb=d6d2dab06a98e1f9d79e4070c97136cc5fff0f70;p=kub diff --git a/kub.c b/kub.c index afaf211..a2e34a1 100644 --- a/kub.c +++ b/kub.c @@ -359,16 +359,13 @@ static void deck_print(deck_t *deck) 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); } }