mirror of
https://gitlab.com/echtnurich/windozexp-enhanced.git
synced 2024-11-21 15:29:15 +01:00
make freezes work and not break
This commit is contained in:
parent
6f14222e1b
commit
9802857eed
1 changed files with 3 additions and 4 deletions
|
@ -44,6 +44,9 @@ fun refresh ()
|
|||
{
|
||||
if (freezecounter == 0) {
|
||||
progress++;
|
||||
if (Math.Random() > 0.99) {
|
||||
freezecounter = Math.Int(Math.Random()*50);
|
||||
}
|
||||
}
|
||||
else {
|
||||
freezecounter--;
|
||||
|
@ -52,10 +55,6 @@ fun refresh ()
|
|||
progress = 0;
|
||||
}
|
||||
|
||||
if (Math.Random() > 0.95) {
|
||||
freezecounter = Math.Random()*10*50
|
||||
}
|
||||
|
||||
new_progress_box.image = Image("throbber-0" + progress/2 + ".png");
|
||||
progress_box.sprite.SetImage(new_progress_box.image);
|
||||
progress_box.sprite.SetOpacity(1);
|
||||
|
|
Loading…
Reference in a new issue