diff options
author | Paul Louden <paulthenerd@gmail.com> | 2007-06-07 22:04:27 +0000 |
---|---|---|
committer | Paul Louden <paulthenerd@gmail.com> | 2007-06-07 22:04:27 +0000 |
commit | 4f711da546ce74a86cfb6bdb6fb5205f4d7c45cb (patch) | |
tree | 8ec075bac15ff069a8df105e52940d9393b1cb3d | |
parent | a1c73f20b334e10ab71da17bfa3b7f3e534df969 (diff) | |
download | rockbox-4f711da546ce74a86cfb6bdb6fb5205f4d7c45cb.tar.gz rockbox-4f711da546ce74a86cfb6bdb6fb5205f4d7c45cb.zip |
Fix a bug concerning difficulty, pointed out by DerPapst in IRC.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13592 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/xobox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c index 0a8b5b11fd..33ef4d04e9 100644 --- a/apps/plugins/xobox.c +++ b/apps/plugins/xobox.c | |||
@@ -785,7 +785,7 @@ static inline void move_board (void) | |||
785 | player.i = newi; | 785 | player.i = newi; |
786 | player.j = newj; | 786 | player.j = newj; |
787 | } | 787 | } |
788 | if (percentage_cache > difficulty) { /* finished level */ | 788 | if (percentage_cache >= difficulty) { /* finished level */ |
789 | rb->splash (HZ * 2, "Level %d finished", player.level+1); | 789 | rb->splash (HZ * 2, "Level %d finished", player.level+1); |
790 | player.score += percentage_cache; | 790 | player.score += percentage_cache; |
791 | if (player.level < MAX_LEVEL) | 791 | if (player.level < MAX_LEVEL) |