Skip to content

Commit

Permalink
Showing 2 changed files with 13 additions and 9 deletions.
Binary file modified GameData/RP-0/Plugins/RP0.dll
Binary file not shown.
22 changes: 13 additions & 9 deletions Source/Crew/CrewHandler.cs
Original file line number Diff line number Diff line change
@@ -354,20 +354,24 @@ public void Update()
// TODO remove from courses? Except I think they won't retire if inactive either so that's ok.
if (toRemove.Count > 0)
{
string msgStr = "The following retirements have occurred:\n";
string msgStr = string.Empty;
foreach (string s in toRemove)
{
kerbalRetireTimes.Remove(s);
msgStr += "\n" + s;
if (HighLogic.CurrentGame.CrewRoster[s] != null)
msgStr += "\n" + s;
}
if (!string.IsNullOrEmpty(msgStr))
{

PopupDialog.SpawnPopupDialog(new Vector2(0.5f, 0.5f),
new Vector2(0.5f, 0.5f),
"Crew Retirement",
msgStr,
"OK",
true,
HighLogic.UISkin);
PopupDialog.SpawnPopupDialog(new Vector2(0.5f, 0.5f),
new Vector2(0.5f, 0.5f),
"Crew Retirement",
"The following retirements have occurred:\n" + msgStr,
"OK",
true,
HighLogic.UISkin);
}

toRemove.Clear();
}

0 comments on commit 01c01d2

Please sign in to comment.