From: Toni Wilen Date: Sun, 15 Sep 2024 14:57:14 +0000 (+0300) Subject: Fix SPRxPOS modification just before horizontal match if sprite had lowest horizontal... X-Git-Tag: 5310~17 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=9bc5073a39b85c0c20dc1bfd75ab7eb7eaabb144;p=francis%2Fwinuae.git Fix SPRxPOS modification just before horizontal match if sprite had lowest horizontal bit set. --- diff --git a/custom.cpp b/custom.cpp index 8aff5baf..8087bace 100644 --- a/custom.cpp +++ b/custom.cpp @@ -5852,7 +5852,7 @@ static void decide_sprites2(int start, int end, int *countp, int *nrs, int *posn hw_xp = sprxp >> sprite_buffer_res; } - if (hw_xp >= start && hw_xp < end) { + if (((hw_xp >= start) || ((spr[i].pos & 1) && hw_xp == start - 1)) && hw_xp < end) { int xdiff = hw_xp - start; int sprxp_abs = (last_sprite_point_abs + xdiff) << sprite_buffer_res; // add hires/shres back