fix offset

beyond that point, i can't improve
This commit is contained in:
freq-mod 2023-03-10 23:33:50 +01:00 committed by GitHub
parent 9b92b118c6
commit b289d4ac1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -4420,7 +4420,10 @@ void FurnaceGUI::drawInsEdit() {
}
if (ImGui::InputInt("Offset##WAVEPOS",&ins->n163.wavePos,1,16)) { PARAMETER
if (ins->n163.wavePos<0) ins->n163.wavePos=0;
if (ins->n163.wavePos>236) ins->n163.wavePos=236;
if (ins->n163.wavePos>240) ins->n163.wavePos=240;
if (ins->n163.wavePos + ins->n163.waveLen > 240) {
ins->n163.wavePos -= ins->n163.waveLen;
}
}
if (ImGui::InputInt("Length##WAVELEN",&ins->n163.waveLen,4,16)) { PARAMETER
int n163origLen = ins->n163.waveLen;