mirror of
https://github.com/holub/mame
synced 2025-06-22 20:38:50 +03:00
Fixed an envelope corner case in the SCSP and AICA (kingshriek)
This commit is contained in:
parent
0a5fc7b33e
commit
1119d3f129
@ -376,7 +376,7 @@ static int EG_Update(struct _SLOT *slot)
|
||||
slot->EG.volume-=slot->EG.D1R;
|
||||
if(slot->EG.volume<=0)
|
||||
slot->EG.volume=0;
|
||||
if(slot->EG.volume>>(EG_SHIFT+5)<slot->EG.DL)
|
||||
if(slot->EG.volume>>(EG_SHIFT+5)<=slot->EG.DL)
|
||||
slot->EG.state=DECAY2;
|
||||
break;
|
||||
case DECAY2:
|
||||
|
@ -419,7 +419,7 @@ static int EG_Update(struct _SLOT *slot)
|
||||
slot->EG.volume-=slot->EG.D1R;
|
||||
if(slot->EG.volume<=0)
|
||||
slot->EG.volume=0;
|
||||
if(slot->EG.volume>>(EG_SHIFT+5)<slot->EG.DL)
|
||||
if(slot->EG.volume>>(EG_SHIFT+5)<=slot->EG.DL)
|
||||
slot->EG.state=DECAY2;
|
||||
break;
|
||||
case DECAY2:
|
||||
|
Loading…
Reference in New Issue
Block a user