summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/sokoban.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index 32c16c58cd..31b74ec2a2 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -32,7 +32,8 @@ PLUGIN_HEADER
32#define ROWS 16 32#define ROWS 16
33#define COLS 20 33#define COLS 20
34/* Use all but 8k of the plugin buffer for board data */ 34/* Use all but 8k of the plugin buffer for board data */
35#define MAX_BUFFERED_BOARDS (PLUGIN_BUFFER_SIZE - 0x2000)/(16*20) 35#define SOKOBAN_LEVEL_SIZE (ROWS*COLS)
36#define MAX_BUFFERED_BOARDS (PLUGIN_BUFFER_SIZE - 0x2000)/SOKOBAN_LEVEL_SIZE
36#define MAX_UNDOS 5 37#define MAX_UNDOS 5
37 38
38/* variable button definitions */ 39/* variable button definitions */
@@ -895,6 +896,7 @@ static bool sokoban_loop(void)
895 for (i = 0; i < 30000 ; i++) { 896 for (i = 0; i < 30000 ; i++) {
896 rb->lcd_fillrect(0, 0, LCD_WIDTH, LCD_HEIGHT); 897 rb->lcd_fillrect(0, 0, LCD_WIDTH, LCD_HEIGHT);
897 rb->lcd_update(); 898 rb->lcd_update();
899 rb->sleep(HZ/20);
898 900
899 button = rb->button_get(false); 901 button = rb->button_get(false);
900 if (button && ((button & BUTTON_REL) != BUTTON_REL)) 902 if (button && ((button & BUTTON_REL) != BUTTON_REL))