diff options
author | erorcun <erayorcunus@gmail.com> | 2020-12-19 20:39:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-19 20:39:42 +0300 |
commit | 4c46d2498315475aafd517db81ef8beeb6e0c322 (patch) | |
tree | 7cfc90f08d5accafe3611c15e086bdefbe28b221 | |
parent | b834d9258535b2cb89bd7bde3db111a74c59e746 (diff) |
style change
-rw-r--r-- | src/audio/MusicManager.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp index 26f6d15c..cde1c8f5 100644 --- a/src/audio/MusicManager.cpp +++ b/src/audio/MusicManager.cpp @@ -90,12 +90,9 @@ cMusicManager::DisplayRadioStationName() if(gStreamedSound == STREAMED_SOUND_CITY_AMBIENT || gStreamedSound == STREAMED_SOUND_WATER_AMBIENT) { gStreamedSound = POLICE_RADIO; // which means OFF - } else { - - if(gStreamedSound > - STREAMED_SOUND_RADIO_MP3_PLAYER) - return; - } + + } else if(gStreamedSound > STREAMED_SOUND_RADIO_MP3_PLAYER) + return; gRetuneCounter = gNumRetunePresses; pRetune = gStreamedSound; @@ -118,12 +115,8 @@ cMusicManager::DisplayRadioStationName() if(gStreamedSound == STREAMED_SOUND_CITY_AMBIENT || gStreamedSound == STREAMED_SOUND_WATER_AMBIENT) { gStreamedSound = POLICE_RADIO; // which means OFF - } else { - - if(gStreamedSound > - STREAMED_SOUND_RADIO_MP3_PLAYER) - return; - } + } else if(gStreamedSound > STREAMED_SOUND_RADIO_MP3_PLAYER) + return; pRetune = gNumRetunePresses + gStreamedSound; |