mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Fix softlock in shiftorium gui boot
This commit is contained in:
parent
1e5a7ea9b3
commit
01c347c562
3 changed files with 2 additions and 4 deletions
|
@ -109,7 +109,6 @@ namespace ShiftOS.WinForms.Applications
|
|||
});
|
||||
t.Start();
|
||||
}
|
||||
while (numComplete < cats.Length) { } // wait for all threads to finish their job
|
||||
}
|
||||
|
||||
private void SetList()
|
||||
|
|
|
@ -248,9 +248,7 @@ namespace ShiftOS.Engine
|
|||
var upg = Shiftorium.GetAvailable().FirstOrDefault(x => x.ID == upgrade);
|
||||
if(upg != null)
|
||||
{
|
||||
if (Shiftorium.Buy(upg.ID, upg.Cost) == true)
|
||||
Console.WriteLine("{RES_UPGRADEINSTALLED}");
|
||||
else
|
||||
if (!Shiftorium.Buy(upg.ID, upg.Cost) == true)
|
||||
Console.WriteLine("{ERR_NOTENOUGHCODEPOINTS}");
|
||||
}
|
||||
else
|
||||
|
|
|
@ -82,6 +82,7 @@ namespace ShiftOS.Engine
|
|||
|
||||
public void Complete()
|
||||
{
|
||||
Thread.Sleep(20);
|
||||
onComplete?.Invoke();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue