Mercurial > audlegacy-plugins
comparison src/adplug/core/fmc.cxx @ 2866:a31410f560cf
Sprinkle some braces to liven up the if-statements. The compiler likes it better now.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Wed, 06 Aug 2008 22:56:25 +0100 |
parents | 4709ce4e209e |
children |
comparison
equal
deleted
inserted
replaced
2865:0ba28b84bdef | 2866:a31410f560cf |
---|---|
128 | 128 |
129 // fix effects | 129 // fix effects |
130 if (tracks[t][k].command == 0x0E) // 0x0E (14): Retrig | 130 if (tracks[t][k].command == 0x0E) // 0x0E (14): Retrig |
131 tracks[t][k].param1 = 3; | 131 tracks[t][k].param1 = 3; |
132 if (tracks[t][k].command == 0x1A) // 0x1A (26): Volume Slide | 132 if (tracks[t][k].command == 0x1A) // 0x1A (26): Volume Slide |
133 { | |
133 if (tracks[t][k].param1 > tracks[t][k].param2) | 134 if (tracks[t][k].param1 > tracks[t][k].param2) |
134 { | 135 { |
135 tracks[t][k].param1 -= tracks[t][k].param2; | 136 tracks[t][k].param1 -= tracks[t][k].param2; |
136 tracks[t][k].param2 = 0; | 137 tracks[t][k].param2 = 0; |
137 } | 138 } |
138 else | 139 else |
139 { | 140 { |
140 tracks[t][k].param2 -= tracks[t][k].param1; | 141 tracks[t][k].param2 -= tracks[t][k].param1; |
141 tracks[t][k].param1 = 0; | 142 tracks[t][k].param1 = 0; |
142 } | 143 } |
144 } | |
143 } | 145 } |
144 | 146 |
145 t++; | 147 t++; |
146 } | 148 } |
147 } | 149 } |