diff options
author | Tom Ross <midgey@rockbox.org> | 2008-12-12 05:52:11 +0000 |
---|---|---|
committer | Tom Ross <midgey@rockbox.org> | 2008-12-12 05:52:11 +0000 |
commit | c99ad8f2b47277d01474095203d531a04269d37e (patch) | |
tree | f9f190fe04ec37793fdcc6d1f85302ab2e37d8e7 /apps/plugins/blackjack.c | |
parent | 5b0f683b6f68e3b7ecf15453b37fbe2ea09168d8 (diff) |
Don't let the user play the hand if it has already completed. Fixes FS #9399.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19398 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/blackjack.c')
-rw-r--r-- | apps/plugins/blackjack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c index fb1d6495f9..bf5a9b0b27 100644 --- a/apps/plugins/blackjack.c +++ b/apps/plugins/blackjack.c @@ -1413,7 +1413,7 @@ static int blackjack(struct game_context* bj) { rb->lcd_update(); } } - if(bj->split_status == 0 && + if(!bj->end_hand && bj->split_status == 0 && bj->player_cards[0][0].num == bj->player_cards[0][1].num) { split(bj); redraw_board(bj); @@ -1424,7 +1424,7 @@ static int blackjack(struct game_context* bj) { } } - while(done < todo) { + while(!bj->end_hand && done < todo) { button = rb->button_get(true); switch(button) { |