fly based on map files contained, not based on if the fly target map is visited

This commit is contained in:
darkfire006 2023-07-16 23:30:39 -05:00
parent 104a504c13
commit 06a76218c7
1 changed files with 8 additions and 1 deletions
P3D/Screens

View File

@ -1173,7 +1173,14 @@
Public Function CanFlyTo(ByVal flag() As Object) As Boolean
If flag(0).ToString().ToLower() = "fly" Then
If FlyToPosition <> Nothing And FlyToFile <> "" Then
If Core.Player.VisitedMaps.Split(CChar(",")).Contains(FlyToFile) = True Or GameController.IS_DEBUG_ACTIVE = True Or Core.Player.SandBoxMode = True Then
Dim flytomap As Boolean = False
For Each map In ContainFiles
If Core.Player.VisitedMaps.Split(CChar(",")).Contains(map) = True Then
flytomap = True
Exit For
End If
Next
If flytomap = True Or GameController.IS_DEBUG_ACTIVE = True Or Core.Player.SandBoxMode = True Then
Return True
End If
End If