diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-01-01 22:47:25 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-01-01 22:47:25 +0000 |
commit | 5c4ef78cc983212a0c2e0868929aa2b699855087 (patch) | |
tree | 6bf9a1e14b5aaf4961561673ee4ef364b3790562 /apps/codecs | |
parent | e35a15cf54a104ff58ee889112d5040654f85ccc (diff) | |
download | rockbox-5c4ef78cc983212a0c2e0868929aa2b699855087.tar.gz 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/codecs')
-rw-r--r-- | apps/codecs/mod.c | 8 |
1 files changed, 3 insertions, 5 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: |