shithub: pokered

Download patch

ref: f16f07c5ca38fa269972dfecab7dbae50e0a73ff
parent: 40c17c906b2b3f65b3b04b1933b90238a7ac5566
author: yenatch <yenatch@gmail.com>
date: Tue May 27 07:08:52 EDT 2014

More wOAMBuffer references.

--- a/engine/mon_party_sprites.asm
+++ b/engine/mon_party_sprites.asm
@@ -356,7 +356,7 @@
 Func_718c3: ; 718c3 (1c:58c3)
 	push af
 	ld c, $10
-	ld h, $c3
+	ld h, wOAMBuffer / $100
 	ld a, [H_DOWNARROWBLINKCNT2] ; $ff8c
 	swap a
 	ld l, a
--- a/engine/oam_dma.asm
+++ b/engine/oam_dma.asm
@@ -14,7 +14,7 @@
 
 DMARoutine:
 	; initiate DMA
-	ld a, $c3
+	ld a, wOAMBuffer / $100
 	ld [$ff46], a
 
 	; wait for DMA to finish
--- a/home.asm
+++ b/home.asm
@@ -9244,7 +9244,7 @@
 ; c = X coordinate of upper left corner of sprite
 ; de = base address of 4 tile number and attribute pairs
 WriteOAMBlock:: ; 3a97 (0:3a97)
-	ld h,$c3
+	ld h,wOAMBuffer / $100
 	swap a ; multiply by 16
 	ld l,a
 	call .writeOneEntry ; upper left