if (sprite_palette != -1) { pal_swap_set(sprite_palette, current_pal, false); draw_sprite_ext(sprite_index, image_index, round((x + sinerx + shakex) / 2) * 2, round((y + sinery + shakey) / 2) * 2, image_xscale, image_yscale, image_angle, image_blend, image_alpha); pal_swap_reset(); } else { draw_sprite_ext(sprite_index, image_index, round((x + sinerx + shakex) / 2) * 2, round((y + sinery + shakey) / 2) * 2, image_xscale, image_yscale, image_angle, color_blend, image_alpha); }