Removed unnecessary checks for battlemapoffset
This commit is contained in:
parent
5b7147c720
commit
4464766202
|
@ -214,15 +214,7 @@
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function GetBattleMapOffset() As Vector3
|
Private Function GetBattleMapOffset() As Vector3
|
||||||
Dim v As New Vector3(0)
|
Return BattleScreen.BattleMapOffset
|
||||||
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
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Overrides ReadOnly Property CPosition() As Vector3
|
Public Overrides ReadOnly Property CPosition() As Vector3
|
||||||
|
|
Loading…
Reference in New Issue