From e23ba807eb0324ba849a17e56f2feb394da6114e Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Tue, 22 Aug 2023 20:13:24 +0200 Subject: [PATCH] Fix camera facing the wrong way in PVP switch --- P3D/Battle/BattleSystemV2/BattleScreen.vb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/P3D/Battle/BattleSystemV2/BattleScreen.vb b/P3D/Battle/BattleSystemV2/BattleScreen.vb index 23fc44927..a1e367726 100644 --- a/P3D/Battle/BattleSystemV2/BattleScreen.vb +++ b/P3D/Battle/BattleSystemV2/BattleScreen.vb @@ -326,6 +326,8 @@ If IsPVPBattle = False And IsRemoteBattle = False Then PlayerStatistics.Track("Trainer battles", 1) + Else + TempPVPBattleQuery.Clear() End If Me.defaultMapType = defaultMapType @@ -550,7 +552,6 @@ Battle.SwitchInOwn(Me, meIndex, True, OwnPokemonIndex) Battle.SwitchInOpp(Me, True, OppPokemonIndex) - TempPVPBattleQuery.Clear() Me.BattleQuery.AddRange({cq1, q5, cq2}) @@ -1847,6 +1848,7 @@ nextIndex: Else BV2Screen.BattleMenu.Visible = True End If + BV2Screen.TempPVPBattleQuery.Clear() End Sub 'Sends some variables that let the client know the current state of the battle @@ -1909,7 +1911,6 @@ nextIndex: End If d &= q.ToString() Next - Me.TempPVPBattleQuery.Clear() Logger.Debug("[Battle]: Sent Host Query") If GameController.IS_DEBUG_ACTIVE Then