mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
fix this for real
sorry for indentation
This commit is contained in:
parent
c2761e4f41
commit
9b92b118c6
1 changed files with 6 additions and 1 deletions
|
@ -4423,9 +4423,14 @@ 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;
|
||||
ins->n163.waveLen&=0xfc;
|
||||
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;
|
||||
}
|
||||
|
||||
bool preLoad=ins->n163.waveMode&0x1;
|
||||
|
|
Loading…
Reference in a new issue