Skip to content

Commit

Permalink
Version 1.23c
Browse files Browse the repository at this point in the history
Fix for ModuleEngines and ModuleEnginesFX now using getIgnited instead
of isOperational
  • Loading branch information
SirDiazo committed Nov 28, 2014
1 parent cbf4544 commit aaa3738
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions AGExt/Flight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,7 @@ public static void ActivateActionGroupCheckModKeys(int group) //backwards compat
{
if (AGXguiMod1Groups[group] == Input.GetKey(AGXguiMod1Key) && AGXguiMod2Groups[group] == Input.GetKey(AGXguiMod2Key))
{
//print("Key act for some reason " + group);
ActivateActionGroup(group, false, false);
}
}
Expand Down Expand Up @@ -4141,7 +4142,7 @@ public void Update()
{
if (AGXguiKeys[i] == KC)
{
//print("Key act for some reason");
//print("Key act for some reason " + i);
ActivateActionGroupCheckModKeys(i);
}
}
Expand Down Expand Up @@ -4262,10 +4263,13 @@ public void PrintPartActs()
{
try
{
print("crew " + FlightGlobals.ActiveVessel.GetVesselCrew().Count);
foreach (ProtoCrewMember pc in FlightGlobals.ActiveVessel.GetVesselCrew())
//print("crew " + FlightGlobals.ActiveVessel.GetVesselCrew().Count);
foreach (Part p in FlightGlobals.ActiveVessel.parts)
{
print("Cname " + pc.KerbalRef.name);
foreach (ModuleEngines eng in p.Modules.OfType<ModuleEngines>())
{
print("state " + eng.isOperational + eng.getIgnitionState);
}
}


Expand Down Expand Up @@ -5177,13 +5181,13 @@ public void CheckActionsActive() //monitor actions state, have to add them manua
if (agAct.ba.listParent.module.moduleName == "ModuleEngines") //all acts not needed, checks bool directly
{
ModuleEngines agEng = (ModuleEngines)agAct.ba.listParent.module;
agAct.activated = agEng.isOperational;
agAct.activated = agEng.getIgnitionState;
}

if (agAct.ba.listParent.module.moduleName == "ModuleEnginesFX")//all acts not needed, checks bool directly
{
ModuleEnginesFX agEng = (ModuleEnginesFX)agAct.ba.listParent.module;
agAct.activated = agEng.isOperational;
agAct.activated = agEng.getIgnitionState;
}
if (agAct.ba.listParent.module.moduleName == "ModuleEnviroSensor")
{
Expand Down

0 comments on commit aaa3738

Please sign in to comment.