shithub: pokecrystal

Download patch

ref: f75bfbeac3aa826e1f402a649fa1389e889b5af9
parent: e135091f09cbd92e7cd5ec851f874501ee5090a2
author: Rangi <[email protected]>
date: Mon Jan 22 08:25:49 EST 2018

Actually use PLAYER_OBJECT

--- a/engine/player_object.asm
+++ b/engine/player_object.asm
@@ -25,7 +25,7 @@
 	call CopyPlayerObjectTemplate
 	ld b, $0
 	call PlayerSpawn_ConvertCoords
-	ld a, $0
+	ld a, PLAYER_OBJECT
 	call GetMapObject
 	ld hl, MAPOBJECT_COLOR
 	add hl, bc
@@ -40,10 +40,10 @@
 
 .ok
 	ld [hl], e
-	ld a, $0
+	ld a, PLAYER_OBJECT
 	ld [hMapObjectIndexBuffer], a
 	ld bc, MapObjects
-	ld a, $0
+	ld a, PLAYER_OBJECT
 	ld [hObjectStructIndexBuffer], a
 	ld de, ObjectStructs
 	call CopyMapObjectToObjectStruct