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 /apps/plugins | |
| parent | 64fcd4cdb0aa8ebdcb2908b649717c2c4f8bc642 (diff) | |
| download | rockbox-ac22b06f372335ff47d1875b580dabcfd3bd9148.zip rockbox-ac22b06f372335ff47d1875b580dabcfd3bd9148.tar.gz rockbox-ac22b06f372335ff47d1875b580dabcfd3bd9148.tar.bz2 rockbox-ac22b06f372335ff47d1875b580dabcfd3bd9148.tar.xz | |
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
Diffstat (limited to 'apps/plugins')
| -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 32c16c5..31b74ec2 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c @@ -32,7 +32,8 @@ PLUGIN_HEADER #define ROWS 16 #define COLS 20 /* Use all but 8k of the plugin buffer for board data */ -#define MAX_BUFFERED_BOARDS (PLUGIN_BUFFER_SIZE - 0x2000)/(16*20) +#define SOKOBAN_LEVEL_SIZE (ROWS*COLS) +#define MAX_BUFFERED_BOARDS (PLUGIN_BUFFER_SIZE - 0x2000)/SOKOBAN_LEVEL_SIZE #define MAX_UNDOS 5 /* variable button definitions */ @@ -895,6 +896,7 @@ static bool sokoban_loop(void) for (i = 0; i < 30000 ; i++) { rb->lcd_fillrect(0, 0, LCD_WIDTH, LCD_HEIGHT); rb->lcd_update(); + rb->sleep(HZ/20); button = rb->button_get(false); if (button && ((button & BUTTON_REL) != BUTTON_REL)) |