Merge pull request #2477 from DarDoro/SpriteTouch

Sprite touching : first row, column included, Issue #2476
pull/89/head
Jens Mönig 2019-10-09 13:42:26 +02:00 zatwierdzone przez GitHub
commit 2a76a187c3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -4481,7 +4481,7 @@ Morph.prototype.isTouching = function (otherMorph) {
return false;
}
data = oImg.getContext('2d')
.getImageData(1, 1, oImg.width, oImg.height)
.getImageData(0, 0, oImg.width, oImg.height)
.data;
len = data.length;
for(i = 3; i < len; i += 4) {