mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
Update DUMB to revision e84e1824fbd0b2b690bd9beb2e25fd308e661982
- Fixed envelopes so they only carry from the same channel SVN r4097 (trunk)
This commit is contained in:
parent
61def2eb16
commit
36157271fc
1 changed files with 3 additions and 2 deletions
|
@ -1618,7 +1618,7 @@ static void it_retrigger_note(DUMB_IT_SIGRENDERER *sigrenderer, IT_CHANNEL *chan
|
||||||
nna = channel->playing->instrument->new_note_action;
|
nna = channel->playing->instrument->new_note_action;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((sigdata->flags & IT_USE_INSTRUMENTS) && (channel->playing->enabled_envelopes) && channel->playing->instnum == channel->instrument) {
|
if (!(channel->playing->flags & IT_PLAYING_DEAD) && (sigdata->flags & IT_USE_INSTRUMENTS) && (channel->playing->enabled_envelopes) && channel->playing->instnum == channel->instrument) {
|
||||||
IT_PLAYING * playing = channel->playing;
|
IT_PLAYING * playing = channel->playing;
|
||||||
IT_INSTRUMENT * inst = &sigdata->instrument[channel->instrument-1];
|
IT_INSTRUMENT * inst = &sigdata->instrument[channel->instrument-1];
|
||||||
if ((playing->enabled_envelopes & IT_ENV_VOLUME) && (inst->volume_envelope.flags & IT_ENVELOPE_CARRY)) {
|
if ((playing->enabled_envelopes & IT_ENV_VOLUME) && (inst->volume_envelope.flags & IT_ENVELOPE_CARRY)) {
|
||||||
|
@ -1739,7 +1739,8 @@ static void it_retrigger_note(DUMB_IT_SIGRENDERER *sigrenderer, IT_CHANNEL *chan
|
||||||
if (!flags && sigdata->flags & IT_USE_INSTRUMENTS) {
|
if (!flags && sigdata->flags & IT_USE_INSTRUMENTS) {
|
||||||
for (i = 0; i < DUMB_IT_N_NNA_CHANNELS; i++) {
|
for (i = 0; i < DUMB_IT_N_NNA_CHANNELS; i++) {
|
||||||
IT_PLAYING * playing = sigrenderer->playing[i];
|
IT_PLAYING * playing = sigrenderer->playing[i];
|
||||||
if (playing && (playing->enabled_envelopes) && playing->instnum == channel->instrument) {
|
if (!playing || playing->channel != channel) continue;
|
||||||
|
if (playing->enabled_envelopes && playing->instnum == channel->instrument) {
|
||||||
IT_INSTRUMENT * inst = &sigdata->instrument[channel->instrument-1];
|
IT_INSTRUMENT * inst = &sigdata->instrument[channel->instrument-1];
|
||||||
if ((playing->enabled_envelopes & IT_ENV_VOLUME) && (inst->volume_envelope.flags & IT_ENVELOPE_CARRY)) {
|
if ((playing->enabled_envelopes & IT_ENV_VOLUME) && (inst->volume_envelope.flags & IT_ENVELOPE_CARRY)) {
|
||||||
flags |= 1;
|
flags |= 1;
|
||||||
|
|
Loading…
Reference in a new issue