summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2019-07-28 21:03:38 -0400
committerFranklin Wei <franklin@rockbox.org>2019-07-28 21:03:38 -0400
commit8bafa1bc9be196a49ae0483f133f589ad8936979 (patch)
tree83f4aaf10e9cd6730e5d0c9708d61a05ab75c1ef /apps
parentb3295f0ed6de06acad47a580b4edf6ccef8564a7 (diff)
pacbox: fix red and enable AI on all targets
Change-Id: I4275e4ec374f3b5a6839890e4a2aa0f577f56522
Diffstat (limited to 'apps')
-rwxr-xr-xapps/plugins/pacbox/pacbox.c5
-rw-r--r--apps/plugins/pacbox/pacbox.h1
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 @@
/*Allows split screen jump and makes pacman invincible if you start at 18 credits (for testing purposes)*/
//#define CHEATS 1
+/* Enable AI on all targets */
+#define AI 1
+
struct pacman_settings {
int difficulty;
int numlives;
@@ -632,7 +635,9 @@ static int gameProc( void )
long end_time;
int frame_counter = 0;
int yield_counter = 0;
+#ifdef AI
unsigned char turn = 250;
+#endif
if (settings.sound)
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 @@
#define PACMAN_COIN BUTTON_PLAYPAUSE
#define PACMAN_MENU BUTTON_POWER
#define SKIP_LEVEL BUTTON_VOL_DOWN
-#define AI 1
#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD