diff --git a/21g30t1e75.js b/21g30t1e75.js index 0a4abbf..f9c6ce3 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1254,19 +1254,19 @@ GameLib.CustomCode.prototype.restore = function() { if (body.orientation === GameLib.CustomCode.ORIENTATION_UP) { - body.backupMesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y; - } - - if (body.orientation === GameLib.CustomCode.ORIENTATION_DOWN) { body.backupMesh.position.y += 0.5 * GameLib.CustomCode.BODY_SCALE_Y; } + if (body.orientation === GameLib.CustomCode.ORIENTATION_DOWN) { + body.backupMesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y; + } + if (body.orientation === GameLib.CustomCode.ORIENTATION_LEFT) { - body.backupMesh.position.x += 0.5 * GameLib.CustomCode.BODY_SCALE_X; + body.backupMesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X; } if (body.orientation === GameLib.CustomCode.ORIENTATION_RIGHT) { - body.backupMesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X; + body.backupMesh.position.x += 0.5 * GameLib.CustomCode.BODY_SCALE_X; }