shithub: zelda3

Download patch

ref: f325af8f3183d92ad5a8e7793820ba9bb5e939f4
parent: 2c5078c443482b8102b45eb4309b8f8068757a91
author: Snesrev <snesrev@protonmail.com>
date: Sat Sep 3 20:09:57 EDT 2022

Fix a Green Zirro bug

--- a/sprite_main.c
+++ b/sprite_main.c
@@ -20232,8 +20232,8 @@
   if ((uint8)(pt.x + 40) < 80 && (uint8)(pt.y + 40) < 80 && player_oam_y_offset != 0x80 &&
       (link_is_running || sign8(button_b_frames - 9))) {
     ProjectSpeedRet pp = Sprite_ProjectSpeedTowardsLink(k, 0x30);
-    sprite_x_vel[k] = -pt.x;
-    sprite_y_vel[k] = -pt.y;
+    sprite_x_vel[k] = -pp.x;
+    sprite_y_vel[k] = -pp.y;
     sprite_delay_main[k] = 8;
     sprite_ai_state[k] = 2;
   }