shithub: pokered

Download patch

ref: 99df5f0fd79f063ee4c7ec364eadd175a3d83c42
parent: 849b53623b2ace56ef40b7bbdefe29a86e10162e
author: YamaArashi <shadow962@live.com>
date: Sun Jul 12 12:37:06 EDT 2015

use constant for bg transfer dest hram var

--- a/engine/HoF_room_pc.asm
+++ b/engine/HoF_room_pc.asm
@@ -130,7 +130,7 @@
 	ld a, l
 	ld [H_AUTOBGTRANSFERDEST], a
 	ld a, h
-	ld [$ffbd], a
+	ld [H_AUTOBGTRANSFERDEST + 1], a
 	ld a, $1
 	ld [H_AUTOBGTRANSFERENABLED], a
 	jp Delay3
--- a/engine/battle/animations.asm
+++ b/engine/battle/animations.asm
@@ -2871,7 +2871,7 @@
 
 Func_79e0d: ; 79e0d (1e:5e0d)
 	ld a, h
-	ld [$ffbd], a
+	ld [H_AUTOBGTRANSFERDEST + 1], a
 	ld a, l
 	ld [H_AUTOBGTRANSFERDEST], a
 	jp Delay3
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -6943,12 +6943,12 @@
 	call SaveScreenTilesToBuffer1
 	call ClearScreen
 	ld a, $98
-	ld [$ffbd], a
+	ld [H_AUTOBGTRANSFERDEST + 1], a
 	ld a, $1
 	ld [H_AUTOBGTRANSFERENABLED], a
 	call Delay3
 	ld a, $9c
-	ld [$ffbd], a
+	ld [H_AUTOBGTRANSFERDEST + 1], a
 	call LoadScreenTilesFromBuffer1
 	hlCoord 9, 7
 	ld bc, $50a
--- a/engine/titlescreen.asm
+++ b/engine/titlescreen.asm
@@ -348,7 +348,7 @@
 	jp LoadFrontSpriteByMonIndex
 
 Func_4533: ; 4533 (1:4533)
-	ld [$ffbd], a
+	ld [H_AUTOBGTRANSFERDEST + 1], a
 	jp Delay3
 
 LoadCopyrightAndTextBoxTiles: ; 4538 (1:4538)
--- a/home/init.asm
+++ b/home/init.asm
@@ -101,9 +101,9 @@
 	ld [wc0ef], a
 	ld [wc0f0], a
 	ld a, $9c
-	ld [$ffbd], a
+	ld [H_AUTOBGTRANSFERDEST + 1], a
 	xor a
-	ld [$ffbc], a
+	ld [H_AUTOBGTRANSFERDEST], a
 	dec a
 	ld [wUpdateSpritesEnabled], a