ref: b67db8a71369a7f000c2180ada2ffbd2e349b636
parent: c28692b32d9ce2425180fbe9e1187491ed92c7b4
author: Snesrev <[email protected]>
date: Sat Oct 8 00:37:41 EDT 2022
Fix Heart dupe vanilla bug (#126)
--- a/sprite_main.c
+++ b/sprite_main.c
@@ -11804,6 +11804,12 @@
if (Sprite_ReturnIfInactive(k))
return;
Sprite_CheckAbsorptionByPlayer(k);
+
+ // Avoid calling Sprite_HandleAbsorptionByPlayer twice, it's called
+ // also from within Sprite_HandleDraggingByAncilla
+ if (sprite_state[k] == 0 && (enhanced_features0 & kFeatures0_MiscBugFixes))
+ return;
+
if (Sprite_HandleDraggingByAncilla(k))
return;
Sprite_MoveXY(k);