Fixed ft2play tone portamento
This commit is contained in:
parent
4acbb21f99
commit
9eb0037780
1 changed files with 2 additions and 2 deletions
|
@ -1636,7 +1636,7 @@ static void TonePorta(PLAYER *p, StmTyp *ch)
|
|||
ch->RealPeriod -= ch->PortaSpeed;
|
||||
if (ch->RealPeriod <= ch->WantPeriod)
|
||||
{
|
||||
ch->PortaDir = 1;
|
||||
ch->PortaDir = 0;
|
||||
ch->RealPeriod = ch->WantPeriod;
|
||||
}
|
||||
}
|
||||
|
@ -1645,7 +1645,7 @@ static void TonePorta(PLAYER *p, StmTyp *ch)
|
|||
ch->RealPeriod += ch->PortaSpeed;
|
||||
if (ch->RealPeriod >= ch->WantPeriod)
|
||||
{
|
||||
ch->PortaDir = 1;
|
||||
ch->PortaDir = 0;
|
||||
ch->RealPeriod = ch->WantPeriod;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue