shithub: pokered

Download patch

ref: 742dd00eb735b3e548bc35f70f23d43ae91ad215
parent: 3e72d0834efd0a02383fa4fd960ed8e563b0e8c4
author: Vortyne <104168801+Vortyne@users.noreply.github.com>
date: Mon Sep 26 10:53:16 EDT 2022

Bug: Sprites can receive the wrong movement byte (#395)

Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>

--- a/engine/overworld/movement.asm
+++ b/engine/overworld/movement.asm
@@ -117,7 +117,7 @@
 	dec a
 	add a
 	ld hl, wMapSpriteData
-	add l
+	add l ; should be adc
 	ld l, a
 	ld a, [hl]        ; read movement byte 2
 	ld [wCurSpriteMovement2], a