mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
One last little bug.
This commit is contained in:
parent
9e30864a10
commit
2d49d6e767
1 changed files with 16 additions and 11 deletions
|
@ -138,23 +138,28 @@ namespace ShiftOS.WinForms
|
|||
}
|
||||
}
|
||||
|
||||
if(SaveSystem.CurrentSave != null)
|
||||
try
|
||||
{
|
||||
if(SaveSystem.CurrentSave.LastMonthPaid != DateTime.Now.Month)
|
||||
if (SaveSystem.CurrentSave != null)
|
||||
{
|
||||
if(SaveSystem.CurrentSave.Codepoints >= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth)
|
||||
if (SaveSystem.CurrentSave.LastMonthPaid != DateTime.Now.Month)
|
||||
{
|
||||
SaveSystem.CurrentSave.Codepoints -= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth;
|
||||
SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month;
|
||||
}
|
||||
else
|
||||
{
|
||||
SaveSystem.CurrentSave.ShiftnetSubscription = 0;
|
||||
SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month;
|
||||
Infobox.Show("Shiftnet", "You do not have enough Codepoints to pay for your Shiftnet subscription this month. You have been downgraded to the free plan.");
|
||||
if (SaveSystem.CurrentSave.Codepoints >= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth)
|
||||
{
|
||||
SaveSystem.CurrentSave.Codepoints -= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth;
|
||||
SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month;
|
||||
}
|
||||
else
|
||||
{
|
||||
SaveSystem.CurrentSave.ShiftnetSubscription = 0;
|
||||
SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month;
|
||||
Infobox.Show("Shiftnet", "You do not have enough Codepoints to pay for your Shiftnet subscription this month. You have been downgraded to the free plan.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
|
||||
|
||||
btnnotifications.Left = lbtime.Left - btnnotifications.Width - 2;
|
||||
btnnotifications.Top = (desktoppanel.Height - btnnotifications.Height) / 2;
|
||||
|
|
Loading…
Reference in a new issue