From 4464766202e4ee65b39754bce8ad095c1dc13d8a Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Fri, 27 Jan 2023 18:31:48 +0100 Subject: [PATCH] Removed unnecessary checks for battlemapoffset --- P3D/Battle/BattleSystemV2/BattleCameraV2.vb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/P3D/Battle/BattleSystemV2/BattleCameraV2.vb b/P3D/Battle/BattleSystemV2/BattleCameraV2.vb index cc41db63b..2a817c7c3 100644 --- a/P3D/Battle/BattleSystemV2/BattleCameraV2.vb +++ b/P3D/Battle/BattleSystemV2/BattleCameraV2.vb @@ -214,15 +214,7 @@ End Function Private Function GetBattleMapOffset() As Vector3 - Dim v As New Vector3(0) - Dim s As Screen = Core.CurrentScreen - While s.Identification <> Screen.Identifications.BattleScreen And Not s.PreScreen Is Nothing - s = s.PreScreen - End While - If s.Identification = Screen.Identifications.BattleScreen Then - v = CType(s, BattleScreen).BattleMapOffset - End If - Return v + Return BattleScreen.BattleMapOffset End Function Public Overrides ReadOnly Property CPosition() As Vector3