shithub: pokered

Download patch

ref: d29d0224e5ccd04f65f1e636d7d86d824b0fefea
parent: f52c1bb78d5609abdabd4f2594c716bb4e0b2e69
parent: 07165f25dc2deefa77fdb20476929d9e1b363ede
author: Daniel Harding <33dannye@gmail.com>
date: Wed May 27 10:34:06 EDT 2020

Merge pull request #239 from Akatsuki-py/use_rept

Use rept macro in CopyHealingMachineOAM

--- a/engine/overworld/healing_machine.asm
+++ b/engine/overworld/healing_machine.asm
@@ -89,16 +89,9 @@
 
 CopyHealingMachineOAM:
 ; copy one OAM entry and advance the pointers
+	rept 4
 	ld a, [de]
 	inc de
 	ld [hli], a
-	ld a, [de]
-	inc de
-	ld [hli], a
-	ld a, [de]
-	inc de
-	ld [hli], a
-	ld a, [de]
-	inc de
-	ld [hli], a
+	endr
 	ret