commit d414493
Devine Lu Linvega
·
2025-12-30 22:42:11 +0000 UTC
parent 05a38b3
Test faster
1 files changed,
+2,
-2
+2,
-2
1@@ -603,7 +603,7 @@ screen_draw_sprite(void)
2 const int addr_incr = rMA << 2;
3 for(i = 0; i <= rML; i++, x += dyx, y += dxy, rA += addr_incr) {
4 const Uint16 xmar2 = x + 16, ymar2 = y + 16, xmar = x + 8;
5- if(xmar2 < screen_wmar2 && ymar2 < screen_hmar2 && xmar2 == xmar + 8) {
6+ if(xmar2 == xmar + 8 && xmar2 < screen_wmar2 && ymar2 < screen_hmar2) {
7 const Uint8 *sprite = &ram[rA];
8 const Uint16 ymar = y + 8;
9 for(ay = ymar * screen_wmar2, by = ymar2 * screen_wmar2, qy = qfy; ay < by; ay += screen_wmar2, qy += fy) {
10@@ -621,7 +621,7 @@ screen_draw_sprite(void)
11 const int addr_incr = rMA << 1;
12 for(i = 0; i <= rML; i++, x += dyx, y += dxy, rA += addr_incr) {
13 const Uint16 xmar2 = x + 16, ymar2 = y + 16, xmar = x + 8;
14- if(xmar2 < screen_wmar2 && ymar2 < screen_hmar2 && xmar2 == xmar + 8) {
15+ if(xmar2 == xmar + 8 && xmar2 < screen_wmar2 && ymar2 < screen_hmar2) {
16 const Uint8 *sprite = &ram[rA];
17 const Uint16 ymar = y + 8;
18 for(ay = ymar * screen_wmar2, by = ymar2 * screen_wmar2, qy = qfy; ay < by; ay += screen_wmar2, qy += fy) {