diff --git a/21g30t1e75.js b/21g30t1e75.js index 8f309fe..4cf8a88 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -231,8 +231,6 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { ); } else { - - var temp = { x : body.position.x, @@ -265,6 +263,15 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { } else { + if (body.bodyType === GameLib.CustomCode.BODY_TYPE_CORNER) { + body.mesh.geometry = null; + body.mesh.materials = null; + body.mesh.remove(); + body.mesh = body.backupMesh; + body.mesh.visible = true; + body.mesh.updateInstance('visible'); + } + body.bodyType = backup.bodyType; }