summaryrefslogtreecommitdiffstats
path: root/apps/plugins/blackjack.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-01-01 22:47:25 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-01-01 22:47:25 +0000
commit5c4ef78cc983212a0c2e0868929aa2b699855087 (patch)
tree6bf9a1e14b5aaf4961561673ee4ef364b3790562 /apps/plugins/blackjack.c
parente35a15cf54a104ff58ee889112d5040654f85ccc (diff)
downloadrockbox-5c4ef78cc983212a0c2e0868929aa2b699855087.tar.gz
rockbox-5c4ef78cc983212a0c2e0868929aa2b699855087.tar.bz2
rockbox-5c4ef78cc983212a0c2e0868929aa2b699855087.zip
Simplify some expressions using the ? operator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24136 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/blackjack.c')
-rw-r--r--apps/plugins/blackjack.c2
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) {
new_card.suit = rb->rand()%4; /* Random number 0-3 */
new_card.num = rb->rand()%13; /* Random number 0-12 */
new_card.value = find_value(new_card.num);
- new_card.is_soft_ace = new_card.num == 0 ? true : false;
+ new_card.is_soft_ace = (new_card.num == 0);
return new_card;
}