Fixed PvP client not updating battle menu

This commit is contained in:
CaptainSegis 2016-10-24 17:26:06 -05:00
parent 183934927e
commit 900e2d38fd
2 changed files with 6 additions and 4 deletions

View File

@ -560,6 +560,10 @@
End Sub
Private Sub UpdateMainMenu(ByVal BattleScreen As BattleScreen)
If BattleScreen.ClearMenuTime = True Then
_mainMenuItemList.Clear()
BattleScreen.ClearMenuTime = False
End If
If _mainMenuItemList.Count = 0 Then
CreateMainMenuItems(BattleScreen)
End If
@ -570,10 +574,6 @@
End If
UpdateMenuOptions(_mainMenuIndex, _mainMenuNextIndex, _mainMenuItemList.Count)
If BattleScreen.ClearMenuTime = True Then
_mainMenuItemList.Clear()
BattleScreen.ClearMenuTime = False
End If
End Sub
Private Sub CreateMainMenuItems(ByVal BattleScreen As BattleScreen)

View File

@ -823,6 +823,8 @@ nextIndex:
ClientWaitForData = False
ReceivedPokemonData = False
BattleMenu.Reset()
ClearMenuTime = True
BattleMenu.Update(Me)
End If
End If
If Me.IsHost = False And Me.LockData <> "{}" And ReceivedPokemonData = False And ClientWaitForData = False And IsRemoteBattle = True Then