diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/mod.c | 8 | ||||
-rw-r--r-- | apps/gui/viewport.c | 2 | ||||
-rw-r--r-- | apps/onplay.c | 2 | ||||
-rw-r--r-- | apps/plugins/blackjack.c | 2 | ||||
-rw-r--r-- | apps/plugins/clix.c | 2 |
5 files changed, 7 insertions, 9 deletions
diff --git a/apps/codecs/mod.c b/apps/codecs/mod.c index cbeaf0837f..3e2e4284de 100644 --- a/apps/codecs/mod.c +++ b/apps/codecs/mod.c | |||
@@ -250,7 +250,7 @@ void mixer_playsample(int channel, int instrument) | |||
250 | p_channel->channelactive = true; | 250 | p_channel->channelactive = true; |
251 | p_channel->samplepos = p_instrument->sampledataoffset; | 251 | p_channel->samplepos = p_instrument->sampledataoffset; |
252 | p_channel->samplefractpos = 0; | 252 | p_channel->samplefractpos = 0; |
253 | p_channel->loopsample = (p_instrument->repeatlength > 2) ? true : false; | 253 | p_channel->loopsample = (p_instrument->repeatlength > 2); |
254 | if (p_channel->loopsample) { | 254 | if (p_channel->loopsample) { |
255 | p_channel->loopstart = p_instrument->repeatoffset + | 255 | p_channel->loopstart = p_instrument->repeatoffset + |
256 | p_instrument->sampledataoffset; | 256 | p_instrument->sampledataoffset; |
@@ -807,8 +807,7 @@ void playline(int pattern, int line) | |||
807 | { | 807 | { |
808 | /* Set Filter */ | 808 | /* Set Filter */ |
809 | case 0x0: | 809 | case 0x0: |
810 | modplayer.amigafilterenabled = | 810 | modplayer.amigafilterenabled = (effecty == 0); |
811 | (effecty>0) ? false : true; | ||
812 | break; | 811 | break; |
813 | /* Fineslide up */ | 812 | /* Fineslide up */ |
814 | case 0x1: | 813 | case 0x1: |
@@ -834,8 +833,7 @@ void playline(int pattern, int line) | |||
834 | break; | 833 | break; |
835 | /* Set glissando on/off */ | 834 | /* Set glissando on/off */ |
836 | case 0x3: | 835 | case 0x3: |
837 | modplayer.glissandoenabled = | 836 | modplayer.glissandoenabled = (effecty > 0); |
838 | (effecty > 0) ? true:false; | ||
839 | break; | 837 | break; |
840 | /* Set Vibrato waveform */ | 838 | /* Set Vibrato waveform */ |
841 | case 0x4: | 839 | case 0x4: |
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 6e0d269228..22eccc161f 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c | |||
@@ -285,7 +285,7 @@ static unsigned viewport_init_ui_vp(void) | |||
285 | ret = viewport_parse_viewport(&custom_vp[screen], screen, | 285 | ret = viewport_parse_viewport(&custom_vp[screen], screen, |
286 | setting, ','); | 286 | setting, ','); |
287 | 287 | ||
288 | custom_vp_loaded_ok[screen] = ret?true:false; | 288 | custom_vp_loaded_ok[screen] = (ret != NULL); |
289 | } | 289 | } |
290 | return true; /* meh fixme */ | 290 | return true; /* meh fixme */ |
291 | } | 291 | } |
diff --git a/apps/onplay.c b/apps/onplay.c index cfda5f4105..c7b0f7ac7d 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -571,7 +571,7 @@ static bool delete_handler(bool is_dir) | |||
571 | if (!res) | 571 | if (!res) |
572 | onplay_result = ONPLAY_RELOAD_DIR; | 572 | onplay_result = ONPLAY_RELOAD_DIR; |
573 | 573 | ||
574 | return ((res == 0) ? true:false); | 574 | return (res == 0); |
575 | } | 575 | } |
576 | 576 | ||
577 | 577 | ||
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 | ||