diff options
Diffstat (limited to 'src/text')
-rw-r--r-- | src/text/action.c | 2 | ||||
-rw-r--r-- | src/text/draw.c | 2 | ||||
-rw-r--r-- | src/text/main.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/text/action.c b/src/text/action.c index 9d4cbbc..cb21c34 100644 --- a/src/text/action.c +++ b/src/text/action.c @@ -15,7 +15,7 @@ case '8': \ case '9': -static const sok_dir_t +static sok_dir_t key_to_dir(const char c) { switch (c) { case 'k': return SOK_DIR_UP; diff --git a/src/text/draw.c b/src/text/draw.c index af0a132..9300e24 100644 --- a/src/text/draw.c +++ b/src/text/draw.c @@ -95,7 +95,7 @@ draw( ) { // fill print buffer if (!sok_ctx_walk(ctx, &DRAW_CBS, NULL)) { - die("Couldn't print level"); + die("Couldn't print level %d", (int) level_num); } // print title, level, and console diff --git a/src/text/main.c b/src/text/main.c index 8e89bed..204da0f 100644 --- a/src/text/main.c +++ b/src/text/main.c @@ -78,7 +78,7 @@ int main(int argc, char *argv[]) { die("Couldn't load level %d", (int) level_num); } } else { - warn("cannot advance to next level"); + warn("cannot advance to next level %d", (int) level_num); } break; @@ -108,7 +108,7 @@ int main(int argc, char *argv[]) { // found solution, print it draw_moves(&ctx, old_num_moves); } else { - warn("Couldn't solve level"); + warn("Couldn't solve level %d", (int) level_num); } } |