Changed default follower elevation to player's current elevation.
This commit is contained in:
parent
5e1c6e0f25
commit
7d4015dc5f
1 changed files with 2 additions and 1 deletions
|
@ -1762,7 +1762,8 @@ void UpdateFollowingPokemon(void) { // Update following pokemon if any
|
|||
.graphicsId = OBJ_EVENT_GFX_OW_MON,
|
||||
.x = gSaveBlock1Ptr->pos.x,
|
||||
.y = gSaveBlock1Ptr->pos.y,
|
||||
.elevation = 3,
|
||||
// If player active, copy player elevation
|
||||
.elevation = gObjectEvents[gPlayerAvatar.objectEventId].active ? gObjectEvents[gPlayerAvatar.objectEventId].currentElevation : 3,
|
||||
.movementType = MOVEMENT_TYPE_FOLLOW_PLAYER,
|
||||
};
|
||||
objEvent = &gObjectEvents[SpawnSpecialObjectEvent(&template)];
|
||||
|
|
Loading…
Reference in a new issue