Increase maximum clone count from 128 to 300

pull/3/merge
jmoenig 2013-10-14 17:03:56 +02:00
rodzic f3b8d8dcef
commit 93960bc4fb
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1958,3 +1958,4 @@ ______
131014
------
* Morphic: Condense damage list by merging overlapping dirty rectangles
* Objects: Increase maximum clone count from 128 to 300

Wyświetl plik

@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
modules.objects = '2013-October-08';
modules.objects = '2013-October-14';
var SpriteMorph;
var StageMorph;
@ -2339,7 +2339,7 @@ SpriteMorph.prototype.createClone = function () {
hats,
stage = this.parentThatIsA(StageMorph);
if (stage) {
if (stage.cloneCount > 128) {return; }
if (stage.cloneCount > 300) {return; }
stage.cloneCount += 1;
clone = this.fullCopy();
clone.isClone = true;