mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 00:04:33 +02:00
Reset Camera Focus after blackout.
This commit is contained in:
parent
8d9a8e63f2
commit
536874888a
@ -63,6 +63,8 @@
|
|||||||
Dim positionString() As String = Core.Player.LastRestPlacePosition.Split(CChar(","))
|
Dim positionString() As String = Core.Player.LastRestPlacePosition.Split(CChar(","))
|
||||||
CType(BattleScreen.SavedOverworld.Camera, OverworldCamera).YawLocked = False
|
CType(BattleScreen.SavedOverworld.Camera, OverworldCamera).YawLocked = False
|
||||||
Screen.Camera.Yaw = MathHelper.Pi
|
Screen.Camera.Yaw = MathHelper.Pi
|
||||||
|
CType(BattleScreen.SavedOverworld.Camera, OverworldCamera).CameraFocusType = OverworldCamera.CameraFocusTypes.Player
|
||||||
|
CType(BattleScreen.SavedOverworld.Camera, OverworldCamera).CameraFocusID = -1
|
||||||
Screen.Camera.Position = New Vector3(CSng(positionString(0).Replace(".", GameController.DecSeparator)), CSng(positionString(1).Replace(".", GameController.DecSeparator)), CSng(positionString(2).Replace(".", GameController.DecSeparator)))
|
Screen.Camera.Position = New Vector3(CSng(positionString(0).Replace(".", GameController.DecSeparator)), CSng(positionString(1).Replace(".", GameController.DecSeparator)), CSng(positionString(2).Replace(".", GameController.DecSeparator)))
|
||||||
CType(BattleScreen.SavedOverworld.OverworldScreen, OverworldScreen).ActionScript.Scripts.Clear()
|
CType(BattleScreen.SavedOverworld.OverworldScreen, OverworldScreen).ActionScript.Scripts.Clear()
|
||||||
|
|
||||||
@ -79,6 +81,8 @@
|
|||||||
Dim positionString() As String = Core.Player.LastRestPlacePosition.Split(CChar(","))
|
Dim positionString() As String = Core.Player.LastRestPlacePosition.Split(CChar(","))
|
||||||
If PreScreen.Identification = Identifications.BattleScreen Then
|
If PreScreen.Identification = Identifications.BattleScreen Then
|
||||||
CType(BattleScreen.SavedOverworld.Camera, OverworldCamera).YawLocked = False
|
CType(BattleScreen.SavedOverworld.Camera, OverworldCamera).YawLocked = False
|
||||||
|
CType(BattleScreen.SavedOverworld.Camera, OverworldCamera).CameraFocusType = OverworldCamera.CameraFocusTypes.Player
|
||||||
|
CType(BattleScreen.SavedOverworld.Camera, OverworldCamera).CameraFocusID = -1
|
||||||
Else
|
Else
|
||||||
CType(Screen.Camera, OverworldCamera).YawLocked = False
|
CType(Screen.Camera, OverworldCamera).YawLocked = False
|
||||||
End If
|
End If
|
||||||
|
Loading…
x
Reference in New Issue
Block a user