summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-03-27 11:45:58 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-03-27 11:45:58 +0100
commita486cf4cc84e79c57caba2a5236d15b6208ff849 (patch)
tree2560c525b5c93a59b7c004eb01e013aeb4147005
parentd40d2dd6a03fcc556aa75f0c2a714859ada9c6ef (diff)
downloadsnap-yow-a486cf4cc84e79c57caba2a5236d15b6208ff849.tar.gz
snap-yow-a486cf4cc84e79c57caba2a5236d15b6208ff849.zip
speech bubble error hotfix
-rw-r--r--objects.js4
1 files changed, 4 insertions, 0 deletions
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());