summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/blackjack.c2
-rw-r--r--apps/plugins/clix.c2
2 files changed, 2 insertions, 2 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
diff --git a/apps/plugins/clix.c b/apps/plugins/clix.c
index e5f65ce36c..6fa6931300 100644
--- a/apps/plugins/clix.c
+++ b/apps/plugins/clix.c
@@ -693,7 +693,7 @@ static int clix_handle_game(struct clix_game_state_t* state)
693 while(true) 693 while(true)
694 { 694 {
695 if (TIME_AFTER(*rb->current_tick, blink_tick)) { 695 if (TIME_AFTER(*rb->current_tick, blink_tick)) {
696 state->blink = state->blink ? false : true; 696 state->blink = !state->blink;
697 blink_tick = *rb->current_tick + BLINK_TICKCOUNT; 697 blink_tick = *rb->current_tick + BLINK_TICKCOUNT;
698 } 698 }
699 699