]> git.cworth.org Git - kub/commitdiff
Draw tiles as 1-13 instead of 0-12
authorCarl Worth <cworth@cworth.org>
Tue, 20 Feb 2007 17:45:07 +0000 (09:45 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 20 Feb 2007 17:45:07 +0000 (09:45 -0800)
A simple off-by-one error in card_draw.

kub.c

diff --git a/kub.c b/kub.c
index 15fc6498eb575762ee997cce9ed35a5f5e828425..0efcbae7428845b34d7cbd1e56d4b1d26ae7ad75 100644 (file)
--- a/kub.c
+++ b/kub.c
@@ -64,7 +64,7 @@ static void card_draw(game_t *game, card_t *card, cairo_t *cr, int x, int y)
     char number_string[3];
     int len;
 
-    len = snprintf (number_string, 3, "%d", card->number);
+    len = snprintf (number_string, 3, "%d", card->number + 1);
     if (len < 0 || len >= 3)
        FATAL_ERROR ("snprintf failed");