From a486cf4cc84e79c57caba2a5236d15b6208ff849 Mon Sep 17 00:00:00 2001 From: Code WvS Date: Fri, 27 Mar 2015 11:45:58 +0100 Subject: speech bubble error hotfix --- objects.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/objects.js b/objects.js index d4f5cb0..cf56086 100644 --- a/objects.js +++ b/objects.js @@ -2912,6 +2912,10 @@ SpriteMorph.prototype.removeClone = function () { // SpriteMorph primitives SpriteMorph.prototype.isTouching = function (other) { + // TODO: workaround, look at this later again + // isTouching seems to be used with other != SpriteMorph + if (other instanceof SpeechBubbleMorph) return false; + var me = L.latLng(this.yPosition(), this.xPosition()); target = L.latLng(other.yPosition(), other.xPosition()); -- cgit v1.3.1