diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-03-27 18:27:29 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-03-27 18:27:29 +0000 |
commit | b917337be9b1f309db06cdf3c2379ccdcbb583ab (patch) | |
tree | 912fc200a98483297e2f508bca0254257c2cf591 | |
parent | 857e946923b5224053e8c2820456c5fbe404b9d6 (diff) |
Brickmania: Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25358 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/brickmania.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 13827edb53..f9d9b653a0 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -2238,7 +2238,7 @@ static int brickmania_game_loop(void) else #endif { - int button_right, button_left, dx; + int button_right, button_left; #ifdef ALTRIGHT button_right = move_button & (RIGHT | ALTRIGHT); button_left = move_button & (LEFT | ALTLEFT); @@ -2251,6 +2251,8 @@ static int brickmania_game_loop(void) if (button_left || button_right) { + int dx = 0; + if ((button_right && !flip_sides) || (button_left && flip_sides)) { |