Failure to quickload due to a lack of a save no longer clears the canvas
This commit is contained in:
parent
e9fb1bfa86
commit
fd5050e299
|
|
@ -12903,13 +12903,13 @@ color1 and color2 spread through striped paint like dye does with itself. <u>col
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
function quickload(pause=true,doSuccessAlert=true,doFailAlert=true) {
|
function quickload(pause=true,doSuccessAlert=true,doFailAlert=true) {
|
||||||
clearAll();
|
|
||||||
rebuildCurrentPixels();
|
|
||||||
var save = localStorage.getItem("quicksave");
|
var save = localStorage.getItem("quicksave");
|
||||||
if(!save) {
|
if(!save) {
|
||||||
if(doFailAlert) { alert("No save exists") };
|
if(doFailAlert) { alert("No save exists") };
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
clearAll();
|
||||||
|
rebuildCurrentPixels();
|
||||||
importJsonState(JSON.parse(save));
|
importJsonState(JSON.parse(save));
|
||||||
if(doSuccessAlert) { alert("Quicksave loaded") };
|
if(doSuccessAlert) { alert("Quicksave loaded") };
|
||||||
if(pause) {
|
if(pause) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue