Skip to content

Commit 36e305a

Browse files
committed
update metamrph_sprite_callback per suggestion (change if statement)
1 parent 87ad831 commit 36e305a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/mame/konami/mystwarr_v.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ K055673_CB_MEMBER(mystwarr_state::metamrph_sprite_callback)
8989

9090
const int shadow = (*color >> 10) & 0b11;
9191
const int effect_attributes = ((*color >> 8) & 0b11) << K055555_MIXSHIFT; // used for blending
92-
*color = (*color & 0x1f) | m_sprite_colorbase | effect_attributes;
93-
94-
if (shadow == 0b11) { *color |= K055555_SKIPSHADOW; }
92+
*color = (*color & 0x1f) | m_sprite_colorbase | effect_attributes | ((shadow == 0b11) ? K055555_SKIPSHADOW : 0);
9593
}
9694

9795
K055673_CB_MEMBER(mystwarr_state::gaiapols_sprite_callback)

0 commit comments

Comments
 (0)