elevator action 2: lights out when shot. fix find by gamezfan, from shmupmame

This commit is contained in:
dinkc64 2019-12-01 10:03:04 -05:00
parent e225847ea4
commit e14645271d

View File

@ -1937,6 +1937,11 @@ static void get_line_ram_info(INT32 which_map, INT32 sx, INT32 sy, INT32 pos, UI
line_enable=2;
else if(pri&0x8000) //alpha2
line_enable=3;
else if((pri&0x3000) && (m_f3_line_ram[0x6230/2] != 0) && (pos == 2) &&
(((m_f3_line_ram[(0x6200/2) + (y)] >> 4) & 0xf) != 0xb) && (f3_game == EACTION2))
{
line_enable=0x22;
}
else
line_enable=1;
@ -2035,6 +2040,8 @@ static void get_line_ram_info(INT32 which_map, INT32 sx, INT32 sy, INT32 pos, UI
/* check tile status */
visible_tile_check(line_t,y,x_index_fx,y_index,f3_pf_data_n);
if ((pos == 1) && ((((m_f3_line_ram[(0x6200/2) + (y)]) >> 4) & 0xf) > 0xb) && (f3_game==EACTION2)) line_t->alpha_mode[y] = 0x22; //from shmupmame
/* If clipping enabled for this line have to disable 'all opaque' optimisation */
if (line_t->clip0[y]!=0x7fff0000 || line_t->clip1[y]!=0)
line_t->alpha_mode[y]&=~0x80;