Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

Commit

Permalink
Some tests for KK. Nothing exciting.
Browse files Browse the repository at this point in the history
  • Loading branch information
magico13 committed May 5, 2016
1 parent f17f35a commit 8b3bf6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Kerbal_Construction_Time/KCT_BuildListVessel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ public EditorFacilities GetEditorFacility()

public void BruteForceLocateVessel()
{
KCTDebug.Log("Brute force looking for "+shipName);
bool found = false;
found = KSC.VABList.Exists(b => b.id == this.id);
if (found) { type = ListType.VAB; return; }
Expand Down Expand Up @@ -426,10 +427,11 @@ public ShipConstruct GetShip()

public void Launch()
{
if (type == ListType.VAB)
if (GetEditorFacility() == EditorFacilities.VAB)
HighLogic.CurrentGame.editorFacility = EditorFacility.VAB;
else
HighLogic.CurrentGame.editorFacility = EditorFacility.SPH;
// HighLogic.CurrentGame.editorFacility = GetEditorFacility();

KCT_GameStates.flightSimulated = false;
string tempFile = KSPUtil.ApplicationRootPath + "saves/" + HighLogic.SaveFolder + "/Ships/temp.craft";
Expand Down

0 comments on commit 8b3bf6a

Please sign in to comment.