diff options
Diffstat (limited to 'apps/plugins/star.c')
-rw-r--r-- | apps/plugins/star.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c index 3506f4b09e..c9797fd85b 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c | |||
@@ -945,7 +945,11 @@ static int star_run_game(int current_level) | |||
945 | int move_x = 0; | 945 | int move_x = 0; |
946 | int move_y = 0; | 946 | int move_y = 0; |
947 | int key; | 947 | int key; |
948 | #if defined(STAR_LEVEL_DOWN_PRE) || \ | ||
949 | defined(STAR_LEVEL_UP_PRE) || \ | ||
950 | defined(STAR_TOGGLE_CONTROL_PRE) | ||
948 | int lastkey = BUTTON_NONE; | 951 | int lastkey = BUTTON_NONE; |
952 | #endif | ||
949 | 953 | ||
950 | if (!star_load_level(current_level)) | 954 | if (!star_load_level(current_level)) |
951 | return 0; | 955 | return 0; |
@@ -1033,8 +1037,12 @@ static int star_run_game(int current_level) | |||
1033 | } | 1037 | } |
1034 | break; | 1038 | break; |
1035 | } | 1039 | } |
1040 | #if defined(STAR_LEVEL_DOWN_PRE) || \ | ||
1041 | defined(STAR_LEVEL_UP_PRE) || \ | ||
1042 | defined(STAR_TOGGLE_CONTROL_PRE) | ||
1036 | if (key != BUTTON_NONE) | 1043 | if (key != BUTTON_NONE) |
1037 | lastkey = key; | 1044 | lastkey = key; |
1045 | #endif | ||
1038 | } | 1046 | } |
1039 | 1047 | ||
1040 | if (control == STAR_CONTROL_BALL) | 1048 | if (control == STAR_CONTROL_BALL) |