Skip to content

Commit

Permalink
Hotfix for not giving budget when time acceleration is high
Browse files Browse the repository at this point in the history
  • Loading branch information
armazac committed May 22, 2016
1 parent e59513c commit 7de9dd4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified GameData/KSPCasher/Plugins/KSPCasher.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions GameData/KSPCasher/Plugins/KSPCasher.version
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"NAME":"KSPCasher",
"URL":"https://raw.githubusercontent.com/a-stat/kspcasher/master/KSPCasher.version",
"DOWNLOAD":"https://github.com/a-stat/kspcasher/releases/download/0.2.0/KSPCasher_0.2.0.zip",
"DOWNLOAD":"https://github.com/a-stat/kspcasher/releases/download/0.2.1/KSPCasher_0.2.1.zip",
"GITHUB":
{
"USERNAME":"a-stat",
Expand All @@ -12,7 +12,7 @@
{
"MAJOR":0,
"MINOR":2,
"PATCH":0,
"PATCH":1,
"BUILD":0
},
"KSP_VERSION":
Expand Down
4 changes: 2 additions & 2 deletions KSPCasher.version
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"NAME":"KSPCasher",
"URL":"https://raw.githubusercontent.com/a-stat/kspcasher/master/KSPCasher.version",
"DOWNLOAD":"https://github.com/a-stat/kspcasher/releases/download/0.2.0/KSPCasher_0.2.0.zip",
"DOWNLOAD":"https://github.com/a-stat/kspcasher/releases/download/0.2.1/KSPCasher_0.2.1.zip",
"GITHUB":
{
"USERNAME":"a-stat",
Expand All @@ -12,7 +12,7 @@
{
"MAJOR":0,
"MINOR":2,
"PATCH":0,
"PATCH":1,
"BUILD":0
},
"KSP_VERSION":
Expand Down
2 changes: 1 addition & 1 deletion KSPCasher/KSPCasher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public void Update()

double time = Planetarium.GetUniversalTime();
KSPDateTime dt = new KSPDateTime(time);
if (dt.Hour != 4) return; //We do budgets at 4am (so you can warp to next morning for it)
if (TimeWarp.CurrentRate < 1001 && dt.Hour < 4) return; //We do budgets at 4am (so you can warp to next morning for it)
string budgetCode = dt.Year.ToString() + dt.Month.ToString() + dt.Day.ToString();

if(budgetCode != LastBudget) {
Expand Down

0 comments on commit 7de9dd4

Please sign in to comment.