summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-06-24 09:06:19 -0700
committeryenatch <yenatch@gmail.com>2014-06-24 10:19:27 -0700
commit43fb5732a27c49396965024291ae2c44d27e9dd5 (patch)
treea0a911bb7d3937f71558ad87a2b8ea6df5ab2aff
parent49ef0121dc44a42f9e87f14dbeedab354a615168 (diff)
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.
-rw-r--r--home/map.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/home/map.asm b/home/map.asm
index 2291faa29..17c311d28 100644
--- a/home/map.asm
+++ b/home/map.asm
@@ -2053,7 +2053,7 @@ GetAnyMapHeaderPointer:: ; 0x2bed
; 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 @@ GetAnyMapHeaderPointer:: ; 0x2bed
; 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