jevsnes.git / third-party / c / patches / 0004-bow-shot-survives-follow-targets.patch
0004-bow-shot-survives-follow-targets.patch17 lines · 742 B · raw
1diff --git a/third-party/c/zbanks-alttp/ap_map.c b/third-party/c/zbanks-alttp/ap_map.c
2--- a/third-party/c/zbanks-alttp/ap_map.c
3+++ b/third-party/c/zbanks-alttp/ap_map.c
4@@ -835,7 +835,12 @@
5     } else {
6         JOYPAD_CLEAR(A);
7         JOYPAD_CLEAR(B);
8-        JOYPAD_CLEAR(Y);
9+        // Carried patch (jev): Y is not cleared here. ap_tick zeroes the pad
10+        // every frame, so the only Y this could clear is one the caller set
11+        // before calling - SCRIPT_KILLALL's bow shot at a VBOW enemy
12+        // (ap_plan.c), which this line, added in bcb2537, cancelled on the
13+        // frame it was pressed: the Armos Knights never took an arrow. The
14+        // boss was killed at 8f13023, before the line existed.
15     }
16 
17