From ee210c503825fee6f3214529ac98866711ad6d88 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Sun, 10 Apr 2016 16:42:00 -0700 Subject: [PATCH] cleanup --- .../cuckooClock/cuckooClockMinuteHandEntityScript.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/unpublishedScripts/DomainContent/Home/cuckooClock/cuckooClockMinuteHandEntityScript.js b/unpublishedScripts/DomainContent/Home/cuckooClock/cuckooClockMinuteHandEntityScript.js index 6be6982f79..3fc4628129 100644 --- a/unpublishedScripts/DomainContent/Home/cuckooClock/cuckooClockMinuteHandEntityScript.js +++ b/unpublishedScripts/DomainContent/Home/cuckooClock/cuckooClockMinuteHandEntityScript.js @@ -33,7 +33,7 @@ }; function startUpdate() { - print("EBL Start CLOCK Update") + // print("EBL Start CLOCK Update") //when the baton is claimed; // print('trying to claim the object' + _entityID) iOwn = true; @@ -67,7 +67,7 @@ _this.userData = getEntityUserData(entityID); // print("ANIMATION!!! " + JSON.stringify(_this.animationURL)); if (!_this.userData || !_this.userData.clockBody) { - print("THIS CLOCK HAND IS NOT ATTACHED TO A CLOCK BODY!"); + // print("THIS CLOCK HAND IS NOT ATTACHED TO A CLOCK BODY!"); return; } _this.clockBody = _this.userData.clockBody; @@ -75,7 +75,7 @@ // One winner for each entity if (Entities.canRez() && Entities.canAdjustLocks) { - print("EBL I HAVE EDIT RIGHTS, SO SET UP BATON!"); + // print("EBL I HAVE EDIT RIGHTS, SO SET UP BATON!"); baton = virtualBaton({ batonName: "io.highfidelity.cuckooClock:" + _this.entityID }); @@ -87,7 +87,7 @@ updateSecondHandForOwnersLocalTime: function() { // We are taking over so make sure to update our second hand to reflect local time if (!_this.secondHand) { - print("WE DONT HAVE A SECOND HAND! RETURNING"); + // print("WE DONT HAVE A SECOND HAND! RETURNING"); return; } var clockRotation = Entities.getEntityProperties(_this.clockBody, "rotation").rotation; @@ -132,7 +132,6 @@ var minutes = date.getMinutes(); if (minutes % 15 === 0 && seconds === 0) { - _this.locked = true; _this.popCuckooOut(); } @@ -142,7 +141,7 @@ _this.checkTime = false; // We are at the top of the hour! _this.position = Entities.getEntityProperties(_this.entityID, "position").position; - print("EBL POP CUCKOO CLOCK!!!!!!!!!!!"); + // print("EBL POP CUCKOO CLOCK!!!!!!!!!!!"); if (!_this.cuckooSoundInjector) { _this.cuckooSoundInjector = Audio.playSound(_this.cuckooSound, { position: _this.position,