summaryrefslogtreecommitdiff
path: root/apps/plugins/sokoban.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sokoban.c')
-rw-r--r--apps/plugins/sokoban.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index 29bdbbbba5..157f53ca92 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -1527,7 +1527,10 @@ static int sokoban_menu(void)
1527static bool sokoban_loop(void) 1527static bool sokoban_loop(void)
1528{ 1528{
1529 bool moved; 1529 bool moved;
1530 int i = 0, button = 0, lastbutton = 0; 1530 int i = 0, button = 0;
1531#if defined(SOKOBAN_UNDO_PRE)
1532 int lastbutton = 0;
1533#endif
1531 int w, h; 1534 int w, h;
1532 char *loc; 1535 char *loc;
1533 1536
@@ -1629,8 +1632,9 @@ static bool sokoban_loop(void)
1629 return PLUGIN_USB_CONNECTED; 1632 return PLUGIN_USB_CONNECTED;
1630 break; 1633 break;
1631 } 1634 }
1632 1635#if defined(SOKOBAN_UNDO_PRE)
1633 lastbutton = button; 1636 lastbutton = button;
1637#endif
1634 1638
1635 if (moved) { 1639 if (moved) {
1636 rb->lcd_clear_display(); 1640 rb->lcd_clear_display();