shithub: pokecrystal

Download patch

ref: cbde91d7edb4be3c8773d71ef814fb599ee7e7f3
parent: 5aac8afae7a3514b76f684237f3de59e6a27977e
author: Remy Oukaour <remy.oukaour@gmail.com>
date: Fri Dec 15 18:59:24 EST 2017

Only engine/decorations.asm uses PadCoords_de

--- a/engine/decorations.asm
+++ b/engine/decorations.asm
@@ -1374,3 +1374,13 @@
 	ld a, c
 	ret
 ; 27092
+
+PadCoords_de: ; 27092
+	ld a, d
+	add 4
+	ld d, a
+	ld a, e
+	add 4
+	ld e, a
+	call GetBlockLocation
+	ret
--- a/main.asm
+++ b/main.asm
@@ -238,16 +238,6 @@
 INCLUDE "engine/prof_oaks_pc.asm"
 INCLUDE "engine/decorations.asm"
 
-PadCoords_de: ; 27092
-	ld a, d
-	add 4
-	ld d, a
-	ld a, e
-	add 4
-	ld e, a
-	call GetBlockLocation
-	ret
-
 LevelUpHappinessMod: ; 2709e
 	ld a, [CurPartyMon]
 	ld hl, PartyMon1CaughtLocation