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
This commit is contained in:
parent
5b0f683b6f
commit
c99ad8f2b4
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue