1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Brandon Low 2006-01-19 07:42:57 +00:00
parent 64fcd4cdb0
commit ac22b06f37

View file

@ -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))