mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-25 02:31:49 +01:00
adjusted SSG-EG Substain end level, fixed Micro Machines 2 tracks logo corruption
This commit is contained in:
parent
add14648d4
commit
85a9dd0e6e
@ -601,7 +601,7 @@ void teamplayer_2_write (unsigned int data)
|
||||
|
||||
unsigned int jcart_read(void)
|
||||
{
|
||||
return (gamepad_read(5) | (gamepad_read(6) << 8));
|
||||
return (gamepad_read(5) | ((gamepad_read(6)&0x3f) << 8)); /* fixes Micro Machines 2 (is it correct ?) */
|
||||
}
|
||||
|
||||
void jcart_write(unsigned int data)
|
||||
|
@ -948,10 +948,8 @@ INLINE void advance_eg_channel(FM_SLOT *SLOT)
|
||||
SLOT->volume += 6 * eg_inc[SLOT->eg_sel_d2r + ((ym2612.OPN.eg_cnt>>SLOT->eg_sh_d2r)&7)];
|
||||
}
|
||||
|
||||
if ( SLOT->volume >= 512) /* Alone Coder */
|
||||
if ( SLOT->volume >= ENV_QUIET) /* Alone Coder */
|
||||
{
|
||||
SLOT->volume = MAX_ATT_INDEX;
|
||||
|
||||
if (SLOT->ssg&0x01) /* bit 0 = hold */
|
||||
{
|
||||
if (SLOT->ssgn&1) /* have we swapped once ??? */
|
||||
@ -970,7 +968,6 @@ INLINE void advance_eg_channel(FM_SLOT *SLOT)
|
||||
|
||||
if ((SLOT->ar + SLOT->ksr) < 94 /*32+62*/)
|
||||
{
|
||||
SLOT->volume = 511; /* Alone Coder */
|
||||
SLOT->state = EG_ATT; /* phase -> Attack */
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user