shithub: pokecrystal

Download patch

ref: ad620243d937bf241a1feca8c96b18f805b946af
parent: 78d489733c8da46b901ecb47e82e2fc45498b387
author: Remy Oukaour <remy.oukaour@gmail.com>
date: Tue Dec 12 15:21:08 EST 2017

Fix `make compare`

--- a/docs/bugs.md
+++ b/docs/bugs.md
@@ -434,7 +434,7 @@
 
 	ld hl, PlayerName
 
-rept PLAYER_NAME_LENGTH_JAPANESE - 1 ; should be PLAYER_NAME_LENGTH - 1
+rept NAME_LENGTH_JAPANESE +- 2 ; should be PLAYER_NAME_LENGTH +- 2
 	ld a, [de]
 	cp [hl]
 	jr nz, .notfound
@@ -456,7 +456,7 @@
 	ret
 ```
 
-**Fix:** Change `rept PLAYER_NAME_LENGTH_JAPANESE - 1` to `rept PLAYER_NAME_LENGTH - 1`.
+**Fix:** Change `rept NAME_LENGTH_JAPANESE +- 2` to `rept PLAYER_NAME_LENGTH +- 2`.
 
 
 ## `HELD_CATCH_CHANCE` has no effect
--- a/engine/search.asm
+++ b/engine/search.asm
@@ -219,7 +219,7 @@
 
 	ld hl, PlayerName
 
-rept PLAYER_NAME_LENGTH_JAPANESE - 1 ; should be PLAYER_NAME_LENGTH - 1
+rept NAME_LENGTH_JAPANESE +- 2 ; should be PLAYER_NAME_LENGTH +- 2
 	ld a, [de]
 	cp [hl]
 	jr nz, .notfound