# HG changeset patch # User Michael Pavone # Date 1738649702 28800 # Node ID dddd16a6c69bd76313f81461afde4a65a6fb7731 # Parent 0da40b1978fd2535af8e4ddd3042e1c4737b2b0c Fix "sticky" sprite overflow regression from previous sprite overflow flag fix diff -r 0da40b1978fd -r dddd16a6c69b vdp.c --- a/vdp.c Sun Feb 02 23:02:55 2025 -0800 +++ b/vdp.c Mon Feb 03 22:15:02 2025 -0800 @@ -739,7 +739,9 @@ static void scan_sprite_table(uint32_t line, vdp_context * context) { - if (context->sprite_index && !(context->flags & FLAG_SPRITE_OFLOW)) { + if (context->sprite_index && + (((uint8_t)context->slot_counter) < context->max_sprites_line || !(context->flags & FLAG_SPRITE_OFLOW)) + ) { line += 1; uint16_t ymask, ymin; uint8_t height_mult;