mainevt.cpp: fixed sprite shadows for Devastators [Angelo Salese]

This commit is contained in:
angelosa 2017-11-12 07:41:09 +01:00
parent 8cad75c00f
commit 3169eb94c5

View File

@ -65,6 +65,9 @@ K051960_CB_MEMBER(mainevt_state::mainevt_sprite_callback)
K051960_CB_MEMBER(mainevt_state::dv_sprite_callback)
{
enum { sprite_colorbase = 128 / 16 };
// enable shadow if upper bits are 0
*shadow = ((*color & 0xe0) >> 5) == 0;
/* TODO: the priority/shadow handling (bits 5-7) seems to be quite complex (see PROM) */
*color = sprite_colorbase + (*color & 0x07);