Skip to content

Commit

Permalink
Changed window id initialisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
CYBUTEK committed Dec 19, 2013
1 parent 7510f71 commit 1068e91
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Engineer/BuildEngineer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class BuildEngineer : PartModule
GUIStyle headingStyle, dataStyle, windowStyle, buttonStyle, areaStyle;
bool hasInitStyles = false;
Rect windowPosition = new Rect(300, 70, 0, 0);
int windowID = new System.Random().Next();
int windowID = Guid.NewGuid().GetHashCode();
int windowMargin = 25;
string windowTitle = "Kerbal Engineer Redux - Build Engineer Version " + Version.VERSION;
string windowTitleCompact = "Kerbal Engineer Redux - Compact";
Expand Down
2 changes: 1 addition & 1 deletion Engineer/FlightEngineer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class FlightEngineer : PartModule
Rendezvous rendezvous = new Rendezvous();

public Rect windowPosition = new Rect(UnityEngine.Screen.width - 275, 0, 0, 0);
int windowID = new System.Random().Next();
int windowID = Guid.NewGuid().GetHashCode();
int windowMargin = 25;

double maxGForce = 0f;
Expand Down
Binary file modified Output/Engineer/Engineer.dll
Binary file not shown.
Binary file modified Output/Engineer/EngineerToolbar.dll
Binary file not shown.

0 comments on commit 1068e91

Please sign in to comment.