From b2debb22768fddc4002e01c9ee08194ea3704d3b Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 16 Jan 2018 14:55:50 +0100 Subject: [PATCH] Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 5 bytes modified --- abw1ga2etc.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/abw1ga2etc.js b/abw1ga2etc.js index 9e4b161..1b40695 100644 --- a/abw1ga2etc.js +++ b/abw1ga2etc.js @@ -11,6 +11,10 @@ if (!this.initialized) { this.initialized = true; } +while (this.cylinder.rotation.x < 0) { + this.cylinder.rotation.x += Math.PI; +} + this.animationSystem.start(); var currentRotation = this.cylinder.rotation.x; @@ -23,11 +27,7 @@ var result = number - remainder; console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' result: ' + result); -if (currentRotation < 0) { - this.cylinder.rotation.x += result - 0.4488; -} else { - this.cylinder.rotation.x += result - 0.4488; -} +this.cylinder.rotation.x += result - 0.4488;