Skip to content

Commit b1c2e22

Browse files
author
Nifty255
committed
v2.4.2:
- Fixed bug which caused the draft app to blank out on the flight scene. - Fixed bug which caused scene switching issues after entering one save, leaving, and then entering another.
1 parent ff33f21 commit b1c2e22

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
lines changed
0 Bytes
Binary file not shown.

DraftTwitchViewers/README.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Draft Twitch Viewers
2-
v2.3: Release
2+
v2.4.2: Release
33

44
This software is provided "as-is" with no warranties.
55

@@ -30,6 +30,10 @@ Draft Twitch Viewers (DTV) uses web requests to connect to Twitch, and can pick
3030

3131
CHANGELOG:
3232

33+
v2.4.2:
34+
- Fixed bug which caused the draft app to blank out on the flight scene.
35+
- Fixed bug which caused scene switching issues after entering one save, leaving, and then entering another.
36+
3337
v2.4.1:
3438
- Modified DraftKerbal method to invoke success using a generic Dictionary instead of a specialized DraftInfo object.
3539
- ScenarioDraftManager now destroys itself when returning to the main menu (and reloads when entering another save) to prevent potential load/save issues.

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Draft Twitch Viewers
2-
v2.3: Release
2+
v2.4.2: Release
33

44
This software is provided "as-is" with no warranties.
55

@@ -30,6 +30,10 @@ Draft Twitch Viewers (DTV) uses web requests to connect to Twitch, and can pick
3030

3131
CHANGELOG:
3232

33+
v2.4.2:
34+
- Fixed bug which caused the draft app to blank out on the flight scene.
35+
- Fixed bug which caused scene switching issues after entering one save, leaving, and then entering another.
36+
3337
v2.4.1:
3438
- Modified DraftKerbal method to invoke success using a generic Dictionary instead of a specialized DraftInfo object.
3539
- ScenarioDraftManager now destroys itself when returning to the main menu (and reloads when entering another save) to prevent potential load/save issues.

Source/DraftTwitchViewers/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.4.1.0")]
36-
[assembly: AssemblyFileVersion("2.3.1.0")]
35+
[assembly: AssemblyVersion("2.4.2.1")]
36+
[assembly: AssemblyFileVersion("2.4.2.1")]

Source/DraftTwitchViewers/README.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Draft Twitch Viewers
2-
v2.3: Release
2+
v2.4.2: Release
33

44
This software is provided "as-is" with no warranties.
55

@@ -30,6 +30,10 @@ Draft Twitch Viewers (DTV) uses web requests to connect to Twitch, and can pick
3030

3131
CHANGELOG:
3232

33+
v2.4.2:
34+
- Fixed bug which caused the draft app to blank out on the flight scene.
35+
- Fixed bug which caused scene switching issues after entering one save, leaving, and then entering another.
36+
3337
v2.4.1:
3438
- Modified DraftKerbal method to invoke success using a generic Dictionary instead of a specialized DraftInfo object.
3539
- ScenarioDraftManager now destroys itself when returning to the main menu (and reloads when entering another save) to prevent potential load/save issues.

Source/DraftTwitchViewers/ScenarioDraftManager.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace DraftTwitchViewers
99
/// <summary>
1010
/// A KSP Scenario module which handles all draft functions, both internal and external.
1111
/// </summary>
12-
[KSPScenario(ScenarioCreationOptions.AddToAllGames, new GameScenes[] { GameScenes.SPACECENTER })]
12+
[KSPScenario(ScenarioCreationOptions.AddToAllGames, new GameScenes[] { GameScenes.SPACECENTER, GameScenes.FLIGHT, GameScenes.TRACKSTATION })]
1313
class ScenarioDraftManager : ScenarioModule
1414
{
1515
#region Instance
@@ -109,7 +109,6 @@ public override void OnAwake()
109109
if (!Instance)
110110
{
111111
Instance = this;
112-
DontDestroyOnLoad(gameObject);
113112

114113
#region Global Settings Load
115114

@@ -277,7 +276,11 @@ void Update()
277276

278277
void OnDestroy()
279278
{
280-
Instance = null;
279+
if (Instance == this)
280+
{
281+
Instance = null;
282+
GameEvents.onGameSceneLoadRequested.Remove(SceneRequested);
283+
}
281284
}
282285

283286
#endregion

0 commit comments

Comments
 (0)