diff --git a/SeamlessClient.cs b/SeamlessClient.cs index 6b893e2..5dbcdb8 100644 --- a/SeamlessClient.cs +++ b/SeamlessClient.cs @@ -117,15 +117,9 @@ namespace SeamlessClientPlugin private System.Timers.Timer PingTimer = new System.Timers.Timer(3000); public static LoadServer Server = new LoadServer(); - - public static bool IsSwitching = false; public static bool RanJoin = false; - - - public static Action JoinAction = () => { }; - public void Dispose() { @@ -219,12 +213,9 @@ namespace SeamlessClientPlugin IsSwitching = true; TransferMessage.PingServerAndBeginRedirect(); RanJoin = false; + MySession.Static.SetCameraController(VRage.Game.MyCameraControllerEnum.SpectatorFixed); //DisposeInitilizations(); } - else if (Recieved.MessageType == ClientMessageType.FirstJoin) - { - - } } catch (Exception ex) { diff --git a/SeamlessTransfer/LoadServer.cs b/SeamlessTransfer/LoadServer.cs index 80eee84..1842096 100644 --- a/SeamlessTransfer/LoadServer.cs +++ b/SeamlessTransfer/LoadServer.cs @@ -304,6 +304,8 @@ namespace SeamlessClientPlugin.SeamlessTransfer //MyScreenManager.CloseScreen(GUIScreenChat); MyHud.Chat.RegisterChat(MyMultiplayer.Static); + //MySession.SetSpectatorPositionFromServer(SeamlessClient.PreviousPosition ?? Vector3D.Zero); + MySession.Static.SetCameraController(MyCameraControllerEnum.SpectatorFixed); } catch (Exception ex)