Skip to content

Commit

Permalink
Fix for crash on entering a wormhole
Browse files Browse the repository at this point in the history
  • Loading branch information
BitBaboonSteve committed Jan 1, 2020
1 parent 5959344 commit 99c2258
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions EVEData/LocalCharacter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ private async Task UpdatePositionFromESI()
{
if (!EveManager.Instance.SystemIDToName.Keys.Contains(esr.Data.SolarSystemId))
{
Location = "";
Region = "";
return;
}
Location = EveManager.Instance.SystemIDToName[esr.Data.SolarSystemId];
Expand Down
4 changes: 2 additions & 2 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace SMT
public partial class MainWindow : Window
{

public string SMTVersion = "SMT_069";
public string SMTVersion = "SMT_070";


/// <summary>
Expand Down Expand Up @@ -94,7 +94,7 @@ public MainWindow()

InitializeComponent();

Title = "SMT (Experimental :" + SMTVersion + ")";
Title = "SMT (Experimental JTAC Edition :" + SMTVersion + ")";

CheckGitHubVersion();

Expand Down
4 changes: 4 additions & 0 deletions UniverseControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,10 @@ public void ReDrawMap(bool FullRedraw = false, bool DataRedraw = false, bool Fas
foreach (KeyValuePair<string, List<string>> kvp in MapCharacters)
{
EVEData.System sys = EM.GetEveSystem(kvp.Key);
if(sys == null)
{
continue;
}
double X = (sys.ActualX - universeXMin) * universeScale;
// need to invert Z
double Z = (universeDepth - (sys.ActualZ - universeZMin)) * universeScale;
Expand Down

0 comments on commit 99c2258

Please sign in to comment.