mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
- For some reason, I missed this change to xm_note_off().
SVN r4119 (trunk)
This commit is contained in:
parent
d1201bb9d1
commit
f283e81b81
1 changed files with 2 additions and 1 deletions
|
@ -1586,7 +1586,8 @@ static void it_note_off(IT_PLAYING *playing)
|
|||
static void xm_note_off(DUMB_IT_SIGDATA *sigdata, IT_CHANNEL *channel)
|
||||
{
|
||||
if (channel->playing) {
|
||||
if (!(sigdata->instrument[channel->instrument-1].volume_envelope.flags & IT_ENVELOPE_ON))
|
||||
if (!channel->instrument || channel->instrument > sigdata->n_instruments ||
|
||||
!(sigdata->instrument[channel->instrument-1].volume_envelope.flags & IT_ENVELOPE_ON))
|
||||
//if (!(entry->mask & IT_ENTRY_INSTRUMENT))
|
||||
// dunno what that was there for ...
|
||||
channel->volume = 0;
|
||||
|
|
Loading…
Reference in a new issue