shithub: pokecrystal

Download patch

ref: b86d0da040448f286aa65ff5b2bacb05fff200a8
parent: 3aabca9baa859b3761235db8cb55b52837b5f5dc
author: yenatch <[email protected]>
date: Fri Aug 30 10:21:26 EDT 2013

less arbitrary wram clearing in game init

--- a/main.asm
+++ b/main.asm
@@ -13225,17 +13225,17 @@
 Function5bae: ; 5bae
 
 	ld hl, Sprites
-	ld bc, $0bcc
+	ld bc, Options - Sprites
 	xor a
 	call ByteFill
 
 	ld hl, $d000
-	ld bc, $047b
+	ld bc, PlayerID - $d000
 	xor a
 	call ByteFill
 
 	ld hl, PlayerID
-	ld bc, $0b7a
+	ld bc, $dff5 - PlayerID
 	xor a
 	call ByteFill