shithub: zelda3

Download patch

ref: 1de9649cf755481b692e278ad2af69d6369fd0b5
parent: 5a0503bd2ba3c479489f557889a1b9ca63a1b517
author: Snesrev <[email protected]>
date: Tue Sep 20 10:08:43 EDT 2022

Fix issue with Toppo not behaving right (Fixes #101)

--- a/sprite_main.c
+++ b/sprite_main.c
@@ -19139,11 +19139,11 @@
     if (Sprite_CheckDamageToLink(k)) {
       dialogue_message_index = 0x174;
       Sprite_ShowMessageMinimal();
-      sprite_subtype2[k] = 1;
+      sprite_subtype[k] = 1;
     }
-  } else if (sprite_subtype[k] < 10) {
+  } else if (sprite_subtype[k] < 16) {
     sprite_subtype[k]++;
-  } else if (sprite_subtype[k] == 10) {
+  } else if (sprite_subtype[k] == 16) {
     sprite_flags5[k] = 0;
     sprite_state[k] = 6;
     sprite_delay_main[k] = 15;