shithub: pokecrystal

Download patch

ref: 43fb5732a27c49396965024291ae2c44d27e9dd5
parent: 49ef0121dc44a42f9e87f14dbeedab354a615168
author: yenatch <yenatch@gmail.com>
date: Tue Jun 24 05:06:19 EDT 2014

Don't use Olivine maps to define the length of a map header.

The first and second map header labels have no semantic meaning with regard to length.
In fact, none of the labels are used at all.

--- a/home/map.asm
+++ b/home/map.asm
@@ -2053,7 +2053,7 @@
 	; get pointer to map group
 	dec b
 	ld c, b
-	ld b, $0
+	ld b, 0
 	ld hl, MapGroupPointers
 	add hl, bc
 	add hl, bc
@@ -2065,8 +2065,8 @@
 
 	; find the cth map header
 	dec c
-	ld b, $0
-	ld a, OlivineGym_MapHeader - OlivinePokeCenter1F_MapHeader
+	ld b, 0
+	ld a, 9
 	call AddNTimes
 	ret
 ; 0x2c04
--