fixes per review

This commit is contained in:
PhilipRosedale 2016-03-23 17:56:02 -07:00
parent 7e658896e6
commit 7b326c9d7b

View file

@ -27,7 +27,7 @@
properties,
lightTimer = 0,
lightTimeoutID = undefined,
audioInjector = null
audioInjector = null;
var HIFI_PUBLIC_BUCKET = "http://s3.amazonaws.com/hifi-public/";
var cannonSound = SoundCache.getSound(HIFI_PUBLIC_BUCKET + "philip/cannonShot.wav");
@ -199,8 +199,6 @@
});
makeParticles(properties.position, bullet, timeOfFlight * 2);
Script.setTimeout(explode, timeOfFlight * 1000);
}
function explode() {
@ -225,8 +223,8 @@
shoot();
}
var timeToNextCheck = 33;
timeoutID = Script.setTimeout(maybe, timeToNextCheck);
var TIME_TO_NEXT_CHECK = 33;
timeoutID = Script.setTimeout(maybe, TIME_TO_NEXT_CHECK);
}
this.preload = function (givenEntityID) {