mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
Fixed PvP client not updating battle menu
This commit is contained in:
parent
183934927e
commit
900e2d38fd
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user