C64: fix global param again...

issue #2181
This commit is contained in:
tildearrow 2024-11-11 04:17:02 -05:00
parent 44e842530b
commit 6f61f6661f

View file

@ -214,8 +214,12 @@ void DivPlatformC64::tick(bool sysTick) {
}
chan[i].freqChanged=true;
}
if (chan[i].std.alg.had && (_i==2 || macroRace)) { // new cutoff macro
DivInstrument* ins=parent->getIns(chan[i].ins,DIV_INS_C64);
bool condition=chan[i].std.alg.will;
DivInstrument* ins=parent->getIns(chan[i].ins,DIV_INS_C64);
if ((!ins->c64.filterIsAbs) || macroRace) {
condition=chan[i].std.alg.had;
}
if (condition) { // new cutoff macro
if (ins->c64.filterIsAbs) {
filtCut=MIN(2047,chan[i].std.alg.val);
} else {