Skip to content

Commit

Permalink
Merge remote-tracking branch 'Starstrider42/free-rename' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswoerz committed Jul 9, 2014
2 parents d3a598d + dc2a98c commit 4bc99b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/RemoteTech2/Modules/ModuleSPU.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
Expand Down Expand Up @@ -44,6 +45,14 @@ private enum State
NoConnection
}

/// <summary>
/// Contains the names of any events that should always be run,
/// regardless of connection status or signal delay
/// </summary>
private static readonly HashSet<String> eventWhiteList = new HashSet<String>() {
"RenameVessel", "RenameAsteroidEvent"
};

private Guid mRegisteredId;

public override String GetInfo()
Expand Down Expand Up @@ -149,6 +158,10 @@ public void HookPartMenus()
{
e.Invoke();
}
else if (eventWhiteList.Contains(e.name))
{
e.Invoke();
}
else if (vs.FlightComputer != null && vs.FlightComputer.InputAllowed)
{
if (ignore_delay)
Expand Down

0 comments on commit 4bc99b4

Please sign in to comment.