Revert "fix this for real"

This reverts commit 9b92b118c6.
This commit is contained in:
freq-mod 2023-03-12 13:07:14 +01:00
parent c33d587622
commit 0db4dc0179
1 changed files with 1 additions and 6 deletions

View File

@ -4423,14 +4423,9 @@ void FurnaceGUI::drawInsEdit() {
if (ins->n163.wavePos>236) ins->n163.wavePos=236;
}
if (ImGui::InputInt("Length##WAVELEN",&ins->n163.waveLen,4,16)) { PARAMETER
int n163origLen = ins->n163.waveLen;
if (ins->n163.waveLen<0) ins->n163.waveLen=0;
if (ins->n163.waveLen>240) ins->n163.waveLen=240;
if (ins->n163.waveLen > n163origLen) {
ins->n163.waveLen = ((ins->n163.waveLen+3)&~2);
}
else ins->n163.waveLen = (ins->n163.waveLen & (~2));
//ins->n163.waveLen&=0xfc;
ins->n163.waveLen&=0xfc;
}
bool preLoad=ins->n163.waveMode&0x1;