KYRA/PC98: minor cleanup

svn-id: r50563
This commit is contained in:
Florian Kagerer 2010-07-01 18:34:14 +00:00
parent 7f3b772938
commit eb84a130ad

View File

@ -3764,8 +3764,8 @@ void TownsPC98_OpnDriver::setSfxTempo(uint16 tempo) {
}
void TownsPC98_OpnDriver::startSoundEffect() {
int i = 0;
for (; i < 2; i++) {
_updateSfxFlag = 0;
for (int i = 0; i < 2; i++) {
if (_sfxOffsets[i]) {
_ssgChannels[i + 1]->protect();
_sfxChannels[i]->reset();
@ -3775,7 +3775,7 @@ void TownsPC98_OpnDriver::startSoundEffect() {
}
int volFlags = 0;
for (i = 0; i < (_numChan + _numSSG - 2); i++)
for (int i = 0; i < (_numChan + _numSSG - 2); i++)
volFlags |= (1 << i);
setVolumeChannelMasks(volFlags, ~volFlags);