diff options
Diffstat (limited to 'apps/plugins/star.c')
-rw-r--r-- | apps/plugins/star.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c index 956b0debab..ce18f0e704 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c | |||
@@ -873,8 +873,12 @@ static int star_run_game(void) | |||
873 | if (current_level == STAR_LEVEL_COUNT) | 873 | if (current_level == STAR_LEVEL_COUNT) |
874 | { | 874 | { |
875 | rb->lcd_clear_display(); | 875 | rb->lcd_clear_display(); |
876 | star_display_text("Congratulation !", true); | 876 | star_display_text("Congratulations!", true); |
877 | rb->lcd_update(); | 877 | rb->lcd_update(); |
878 | |||
879 | /* There is no such level as STAR_LEVEL_COUNT so it can't be the | ||
880 | * current_level */ | ||
881 | current_level--; | ||
878 | return 1; | 882 | return 1; |
879 | } | 883 | } |
880 | star_load_level(current_level); | 884 | star_load_level(current_level); |
@@ -895,8 +899,9 @@ static int star_choose_level(void) | |||
895 | while (true) | 899 | while (true) |
896 | { | 900 | { |
897 | rb->lcd_clear_display(); | 901 | rb->lcd_clear_display(); |
902 | /* levels are numbered 0 to (STAR_LEVEL_COUNT-1) */ | ||
898 | rb->snprintf(str_info, sizeof(str_info), "Level:%02d / %02d", | 903 | rb->snprintf(str_info, sizeof(str_info), "Level:%02d / %02d", |
899 | level,STAR_LEVEL_COUNT); | 904 | level,(STAR_LEVEL_COUNT-1)); |
900 | rb->lcd_putsxy(0, 0, str_info); | 905 | rb->lcd_putsxy(0, 0, str_info); |
901 | rb->lcd_update(); | 906 | rb->lcd_update(); |
902 | key = rb->button_get(true); | 907 | key = rb->button_get(true); |