From ff78e09f9413b5e0464209bda3c23384a3e0dd16 Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Tue, 25 Feb 2003 21:32:46 +0000 Subject: undo bug across levels, you can't undo to the previous level git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3338 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/sokoban.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/recorder/sokoban.c b/apps/recorder/sokoban.c index 061afcb97a..7511fae944 100644 --- a/apps/recorder/sokoban.c +++ b/apps/recorder/sokoban.c @@ -691,8 +691,11 @@ static bool sokoban_loop(void) if (current_info.level.boxes_to_go == 0) { current_info.level.level++; - lcd_clear_display(); + /* clear undo stats */ + init_undo(); + lcd_clear_display(); + if (current_info.level.level == NUM_LEVELS) { lcd_putsxy(10, 20, str(LANG_SOKOBAN_WIN)); -- cgit v1.2.3