diff options
Diffstat (limited to 'apps/plugins/blackjack.c')
-rw-r--r-- | apps/plugins/blackjack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c index 1e574dc2bd..9096673bba 100644 --- a/apps/plugins/blackjack.c +++ b/apps/plugins/blackjack.c | |||
@@ -608,7 +608,7 @@ static struct card new_card(void) { | |||
608 | new_card.suit = rb->rand()%4; /* Random number 0-3 */ | 608 | new_card.suit = rb->rand()%4; /* Random number 0-3 */ |
609 | new_card.num = rb->rand()%13; /* Random number 0-12 */ | 609 | new_card.num = rb->rand()%13; /* Random number 0-12 */ |
610 | new_card.value = find_value(new_card.num); | 610 | new_card.value = find_value(new_card.num); |
611 | new_card.is_soft_ace = new_card.num == 0 ? true : false; | 611 | new_card.is_soft_ace = (new_card.num == 0); |
612 | return new_card; | 612 | return new_card; |
613 | } | 613 | } |
614 | 614 | ||