Browse Source

readded failsave mechanism, less crashes

master
Victor Giers 2 years ago
parent
commit
555d729879
2 changed files with 6 additions and 6 deletions
  1. 1
    1
      data/saves.sav
  2. 5
    5
      secondapplet.pde

+ 1
- 1
data/saves.sav View File

@@ -1,2 +1,2 @@
//globals
uptime = 116820983
uptime = 116880661

+ 5
- 5
secondapplet.pde View File

@@ -229,17 +229,17 @@ public class SecondApplet extends PApplet {
else
renderSizeChanged = false;
for (int i = 0; i < shaderList.size(); i++) {
//try {
try {

shaderList.get(i).getValuesFromGUI();
if (bricks.get(i).active) {
//shaderList.get(i).getValuesFromGUI();
shaderList.get(i).shade();
}
// }
//catch(Exception e) {
// println("Warning: Brick not yet loaded");
//}
}
catch(Exception e) {
println("Warning: Brick not yet loaded");
}
if (i > maxFx) break;
}
}

Loading…
Cancel
Save