Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 95 bytes modified
parent
27775ff848
commit
681a9b2f08
|
@ -834,12 +834,12 @@ GameLib.CustomCode.SnakeBody.prototype.dispose = function() {
|
||||||
this.backupMesh.geometry = null;
|
this.backupMesh.geometry = null;
|
||||||
this.backupMesh.materials = null;
|
this.backupMesh.materials = null;
|
||||||
this.backupMesh.remove();
|
this.backupMesh.remove();
|
||||||
|
this.backupMesh = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.flip = 0;
|
this.flip = 0;
|
||||||
this.orientaiton = 0;
|
this.orientaiton = 0;
|
||||||
this.isTail = false;
|
this.isTail = false;
|
||||||
this.backupMesh = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GameLib.CustomCode.SnakeBody.prototype.clone = function() {
|
GameLib.CustomCode.SnakeBody.prototype.clone = function() {
|
||||||
|
@ -1175,9 +1175,7 @@ GameLib.CustomCode.prototype.restore = function() {
|
||||||
function(backupBody) {
|
function(backupBody) {
|
||||||
if (
|
if (
|
||||||
backupBody.mesh === body.mesh ||
|
backupBody.mesh === body.mesh ||
|
||||||
backupBody.backupMesh === body.mesh ||
|
backupBody.mesh === body.backupMesh
|
||||||
backupBody.mesh === body.backupMesh ||
|
|
||||||
backupBody.backupMesh === body.backupMesh
|
|
||||||
) {
|
) {
|
||||||
inUse = true;
|
inUse = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue