diff options
author | Franklin Wei <franklin@rockbox.org> | 2019-07-28 21:03:38 -0400 |
---|---|---|
committer | Franklin Wei <franklin@rockbox.org> | 2019-07-28 21:03:38 -0400 |
commit | 8bafa1bc9be196a49ae0483f133f589ad8936979 (patch) | |
tree | 83f4aaf10e9cd6730e5d0c9708d61a05ab75c1ef | |
parent | b3295f0ed6de06acad47a580b4edf6ccef8564a7 (diff) | |
download | rockbox-8bafa1bc9be196a49ae0483f133f589ad8936979.tar.gz rockbox-8bafa1bc9be196a49ae0483f133f589ad8936979.zip |
pacbox: fix red and enable AI on all targets
Change-Id: I4275e4ec374f3b5a6839890e4a2aa0f577f56522
-rwxr-xr-x | apps/plugins/pacbox/pacbox.c | 5 | ||||
-rw-r--r-- | apps/plugins/pacbox/pacbox.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/pacbox/pacbox.c b/apps/plugins/pacbox/pacbox.c index b902103676..fd8fdcd4db 100755 --- a/apps/plugins/pacbox/pacbox.c +++ b/apps/plugins/pacbox/pacbox.c | |||
@@ -39,6 +39,9 @@ | |||
39 | /*Allows split screen jump and makes pacman invincible if you start at 18 credits (for testing purposes)*/ | 39 | /*Allows split screen jump and makes pacman invincible if you start at 18 credits (for testing purposes)*/ |
40 | //#define CHEATS 1 | 40 | //#define CHEATS 1 |
41 | 41 | ||
42 | /* Enable AI on all targets */ | ||
43 | #define AI 1 | ||
44 | |||
42 | struct pacman_settings { | 45 | struct pacman_settings { |
43 | int difficulty; | 46 | int difficulty; |
44 | int numlives; | 47 | int numlives; |
@@ -632,7 +635,9 @@ static int gameProc( void ) | |||
632 | long end_time; | 635 | long end_time; |
633 | int frame_counter = 0; | 636 | int frame_counter = 0; |
634 | int yield_counter = 0; | 637 | int yield_counter = 0; |
638 | #ifdef AI | ||
635 | unsigned char turn = 250; | 639 | unsigned char turn = 250; |
640 | #endif | ||
636 | 641 | ||
637 | if (settings.sound) | 642 | if (settings.sound) |
638 | start_sound(); | 643 | start_sound(); |
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h index a93beca67a..0e3de62dfa 100644 --- a/apps/plugins/pacbox/pacbox.h +++ b/apps/plugins/pacbox/pacbox.h | |||
@@ -286,7 +286,6 @@ | |||
286 | #define PACMAN_COIN BUTTON_PLAYPAUSE | 286 | #define PACMAN_COIN BUTTON_PLAYPAUSE |
287 | #define PACMAN_MENU BUTTON_POWER | 287 | #define PACMAN_MENU BUTTON_POWER |
288 | #define SKIP_LEVEL BUTTON_VOL_DOWN | 288 | #define SKIP_LEVEL BUTTON_VOL_DOWN |
289 | #define AI 1 | ||
290 | 289 | ||
291 | #elif CONFIG_KEYPAD == SANSA_CONNECT_PAD | 290 | #elif CONFIG_KEYPAD == SANSA_CONNECT_PAD |
292 | 291 | ||