Corrected bugs and JsHint

This commit is contained in:
Thomas FORGIONE
2015-07-20 15:51:29 +02:00
parent 7409133857
commit 1f54b03463
3 changed files with 10 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ L3D.ReplayCamera.prototype.start = function() {
this.counter = 0;
this.started = true;
this.nextEvent();
}
};
// Update function
L3D.ReplayCamera.prototype.update = function(time) {

View File

@@ -217,11 +217,13 @@ L3D.resetBobombElements = function() {
L3D.generateCoins = function(totalCoins, coin_ids) {
var i = 0;
if (coin_ids === undefined)
L3D.shuffle(totalCoins);
else {
for (var i = 0; i < coin_ids.length; i++) {
for (i = 0; i < coin_ids.length; i++) {
for (var j = 0; j < totalCoins.length; j++) {