diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-01-19 07:42:57 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-01-19 07:42:57 +0000 |
commit | ac22b06f372335ff47d1875b580dabcfd3bd9148 (patch) | |
tree | 7f5b3d4c01a200a48f0f979ed9e28e471a237348 | |
parent | 64fcd4cdb0aa8ebdcb2908b649717c2c4f8bc642 (diff) | |
download | rockbox-ac22b06f372335ff47d1875b580dabcfd3bd9148.tar.gz rockbox-ac22b06f372335ff47d1875b580dabcfd3bd9148.zip |
Use symbolic name better and don't appear to crash on the You WIN screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8381 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/sokoban.c | 4 |
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)) |