From 1fcfc9444b200d0707fceed4152c31af1473077e Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Fri, 30 Dec 2016 08:12:44 -0800 Subject: [PATCH] revert bow.js changes --- unpublishedScripts/marketplace/bow/bow.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/unpublishedScripts/marketplace/bow/bow.js b/unpublishedScripts/marketplace/bow/bow.js index 5afeb99ce4..818960e335 100644 --- a/unpublishedScripts/marketplace/bow/bow.js +++ b/unpublishedScripts/marketplace/bow/bow.js @@ -154,7 +154,6 @@ }, continueEquip: function(entityID, args) { this.deltaTime = checkInterval(); - print("continueEquip deltaTime:" + this.deltaTime); //debounce during debugging -- maybe we're updating too fast? if (USE_DEBOUNCE === true) { this.sinceLastUpdate = this.sinceLastUpdate + this.deltaTime; @@ -375,8 +374,8 @@ this.pullBackDistance = 0; this.state = STATE_ARROW_GRABBED; } else { - this.updateArrowPositionInNotch(false, false); this.updateString(); + this.updateArrowPositionInNotch(false, false); } } if (this.state === STATE_ARROW_GRABBED) { @@ -591,16 +590,5 @@ Messages.subscribe('Hifi-Object-Manipulation'); Messages.messageReceived.connect(bow.handleMessages); - var TIMER_INTERVAL = 5; - var lastRPC = Date.now(); - var RPCkicker = Script.setInterval(function() { - // do nothing, but make sure we get RPC messages in a reliable way - var now = Date.now(); - deltaTime = now - lastRPC; - lastRPC = now; - //print("RPCkicker interval:"+deltaTime); - },TIMER_INTERVAL); - - return bow; -}); \ No newline at end of file +});