From fce7adb49521f8b1dfe8cc0d1c7ff71dd3975808 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 11 May 2015 14:41:22 +0200 Subject: [PATCH] Corrected parenthesis bug --- static/js/prototype/raycasterTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/prototype/raycasterTools.js b/static/js/prototype/raycasterTools.js index ba2d2da..0984eb6 100644 --- a/static/js/prototype/raycasterTools.js +++ b/static/js/prototype/raycasterTools.js @@ -62,7 +62,7 @@ CameraSelecter.prototype.update = function(event) { var hovered = this.pointedCamera(event); - if (hovered !== undefined && !hovered instanceof Coin) { + if (hovered !== undefined && !(hovered instanceof Coin)) { this.prev.x = this.mouse.x; this.prev.y = this.mouse.y; this.prev.camera = hovered; @@ -74,7 +74,7 @@ CameraSelecter.prototype.update = function(event) { CameraSelecter.prototype.click = function(event) { var newCamera = this.pointedCamera(event); - if (newCamera !== undefined && !newCamera instanceof Coin) { + if (newCamera !== undefined && !(newCamera instanceof Coin)) { this.cameras.mainCamera().moveHermite(newCamera); buttonManager.updateElements(); } else if (newCamera instanceof Coin) {