shithub: pokered

Download patch

ref: 18f52b7cdcf957ff7c7eab902a8e90d7cf0935e9
parent: 17d6c0d0f7de10572f15a99323d834c2ab4af6ff
author: xeons <xeons@xeons.net>
date: Fri Mar 30 17:55:29 EDT 2012

fix a few things I did wrong

hg-commit-id: 919adffe4381


--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -604,8 +604,7 @@
     bank_id = 0
     if original_offset > 0x8000:
         bank_id = original_offset / 0x4000
-    #print "bank id is: " + str(bank_id)
-    print "Function{0:x}:".format(original_offset);
+    print "bank id is: " + str(bank_id)
 
     last_hl_address = None #for when we're scanning the main map script
     last_a_address = None
--- a/main.asm
+++ b/main.asm
@@ -10810,7 +10810,7 @@
 	ld hl, $D732
 	bit 5, [hl]
 	ret nz
-	ld hl, ForcedBikeSurfMaps
+	ld hl, ForcedBikeOrSurfMaps
 	ld a, [W_YCOORD]
 	ld b, a
 	ld a, [W_XCOORD]
@@ -10817,28 +10817,28 @@
 	ld c, a
 	ld a, [W_CURMAP]
 	ld d, a
-.loop\0
+.loop\@
 	ld a, [hli]
 	cp $ff
 	ret z ;if we reach FF then it's not part of the list
 	cp d ;compare to current map
-	jr nz, .incorrectMap\0
+	jr nz, .incorrectMap\@
 	ld a, [hli]
 	cp b ;compare y-coord
-	jr nz, .incorrectY\0
+	jr nz, .incorrectY\@
 	ld a, [hli]
 	cp c ;compare x-coord
-	jr nz, .loop\0 ; incorrect x-coord, check next item
+	jr nz, .loop\@ ; incorrect x-coord, check next item
 	ld a, [W_CURMAP]
 	cp SEAFOAM_ISLANDS_4
 	ld a, $2
 	ld [$d666], a
-	jr z, .forceSurfing\0
+	jr z, .forceSurfing\@
 	ld a, [$d35e]
 	cp SEAFOAM_ISLANDS_5
 	ld a, $2
 	ld [$d668], a
-	jr z, .forceSurfing\0
+	jr z, .forceSurfing\@
 	;force bike riding
 	ld hl, $d732
 	set 5, [hl]
@@ -10846,12 +10846,12 @@
 	ld [$d700], a
 	ld [$d11a], a
 	jp ForceBikeOrSurf
-.incorrectMap\0
+.incorrectMap\@
 	inc hl
-.incorrectY\0
+.incorrectY\@
 	inc hl
-	jr .loop\0
-.forceSurfing\0
+	jr .loop\@
+.forceSurfing\@
 	ld a, $2
 	ld [$d700], a
 	ld [$d11a], a
@@ -10858,7 +10858,7 @@
 	jp ForceBikeOrSurf
 ; 0xc3e6
 
-ForcedBikeSurfMaps: ;C3e6
+ForcedBikeOrSurfMaps: ;C3e6
 ; map id, y, x
 db ROUTE_16,$0A,$11 
 db ROUTE_16,$0B,$11