[Overworld Pokémon Fix]

Fixed OverworldPokemon from continuing to walk infinitely when pausing the game, opening a chat window or while the current screen is any other screen than OverworldScreen
This commit is contained in:
JappaWakka 2021-01-20 17:45:57 +01:00 committed by Vitaly Mikhailov
parent 9e84125706
commit 9244a18653
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ Public Class OverworldPokemon
End Sub End Sub
Private Sub ChangePosition() Private Sub ChangePosition()
If Screen.Camera.IsMoving() = True Then If Screen.Camera.IsMoving() = True And Core.CurrentScreen.Identification = Screen.Identifications.OverworldScreen Then
If CInt(Me.Position.X) <> CInt(Screen.Camera.Position.X) Or CInt(Me.Position.Z) <> CInt(Screen.Camera.Position.Z) Then If CInt(Me.Position.X) <> CInt(Screen.Camera.Position.X) Or CInt(Me.Position.Z) <> CInt(Screen.Camera.Position.Z) Then
Me.Position += GetMove() Me.Position += GetMove()
Me.AnimationDelayLenght = 1.1F Me.AnimationDelayLenght = 1.1F