From 40f6419c558acd3fd0cb37f2ebf5720804fdd13a Mon Sep 17 00:00:00 2001 From: Tiehuis Date: Mon, 23 Feb 2015 12:41:34 +1300 Subject: [PATCH] Fix errors. Add printing of scores after game so user can actually see what they scored --- src/main.c | 2 ++ src/merge.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 949e3de..ba0feb4 100644 --- a/src/main.c +++ b/src/main.c @@ -60,6 +60,8 @@ get_new_key:; } gfx_destroy(s); + printf("Highscore: %ld\n", g->score_high); + printf(" Score: %ld\n", g->score); gamestate_clear(g); return 0; } diff --git a/src/merge.c b/src/merge.c index 086bea7..d2b63f8 100644 --- a/src/merge.c +++ b/src/merge.c @@ -3,7 +3,6 @@ #define MERGE_GOAL 11 -:a const long merge_values[] = { 0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048