Skip to content

Commit

Permalink
Fix the startup of the warping system. Closes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
gavazquez committed Oct 31, 2016
1 parent 719f644 commit 14d271b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Client/Systems/Warp/WarpMessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void HandleMessage(IMessageData messageData)
AddSubspace(-1, 0);//Add warping subspace

//Set us into server subspace
System.SkipSubspaceProcess = true;
System.CurrentSubspace = 0;

MainSystem.Singleton.NetworkState = ClientState.WARPSUBSPACES_SYNCED;
Expand Down
4 changes: 2 additions & 2 deletions Client/Systems/Warp/WarpSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public class WarpSystem : MessageSystem<WarpSystem, WarpMessageSender, WarpMessa

public WarpEntryDisplay WarpEntryDisplay { get; } = new WarpEntryDisplay();

private int _currentSubspace;

private int _currentSubspace = int.MinValue;
public int CurrentSubspace
{
get { return _currentSubspace; }
Expand Down Expand Up @@ -67,6 +66,7 @@ public override void OnDisabled()
GameEvents.onTimeWarpRateChanged.Remove(WarpEvents.OnTimeWarpChanged);
ClientSubspaceList.Clear();
Subspaces.Clear();
_currentSubspace = int.MinValue;
}

public override void OnEnabled()
Expand Down

0 comments on commit 14d271b

Please sign in to comment.