Fixed fly callback logic.
This commit is contained in:
parent
69ae5b18c0
commit
acdeb438a8
1 changed files with 5 additions and 4 deletions
|
@ -1604,9 +1604,6 @@ static void CB2_LoadMapOnReturnToFieldCableClub(void)
|
||||||
|
|
||||||
void CB2_ReturnToField(void)
|
void CB2_ReturnToField(void)
|
||||||
{
|
{
|
||||||
if (gFieldCallback == FieldCallback_Fly) { // Destroy follower if flying away
|
|
||||||
RemoveFollowingPokemon();
|
|
||||||
}
|
|
||||||
if (IsUpdateLinkStateCBActive() == TRUE)
|
if (IsUpdateLinkStateCBActive() == TRUE)
|
||||||
{
|
{
|
||||||
SetMainCallback2(CB2_ReturnToFieldLink);
|
SetMainCallback2(CB2_ReturnToFieldLink);
|
||||||
|
@ -1950,7 +1947,11 @@ static bool32 ReturnToFieldLocal(u8 *state)
|
||||||
sub_80867D8();
|
sub_80867D8();
|
||||||
ResumeMap(FALSE);
|
ResumeMap(FALSE);
|
||||||
sub_8086A68();
|
sub_8086A68();
|
||||||
UpdateFollowingPokemon(); // TODO: Update all dynamic graphicsIds
|
if (gFieldCallback == FieldCallback_Fly) {
|
||||||
|
RemoveFollowingPokemon();
|
||||||
|
} else {
|
||||||
|
UpdateFollowingPokemon(); // TODO: Update all dynamic graphicsIds
|
||||||
|
}
|
||||||
SetCameraToTrackPlayer();
|
SetCameraToTrackPlayer();
|
||||||
(*state)++;
|
(*state)++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue