XM import: fix EC0/ED0

This commit is contained in:
tildearrow 2024-07-14 03:44:29 -05:00
parent 5e58999e8d
commit 26e7e5bb82

View file

@ -1063,11 +1063,11 @@ bool DivEngine::loadXM(unsigned char* file, size_t len) {
break;
case 0xc:
p->data[j][effectCol[k]++]=0xec;
p->data[j][effectCol[k]++]=effectVal&15;
p->data[j][effectCol[k]++]=MAX(1,effectVal&15);
break;
case 0xd:
p->data[j][effectCol[k]++]=0xed;
p->data[j][effectCol[k]++]=effectVal&15;
p->data[j][effectCol[k]++]=MAX(1,effectVal&15);
break;
}
break;