Remove offset for transparent tile.

This commit is contained in:
Torbjörn Kvist 2018-06-04 11:16:23 +02:00
parent f509f43472
commit bbe34e0816

View File

@ -356,10 +356,10 @@ $.Tile.prototype = {
//clearing only the inside of the rectangle occupied //clearing only the inside of the rectangle occupied
//by the png prevents edge flikering //by the png prevents edge flikering
context.clearRect( context.clearRect(
position.x + 1, position.x,
position.y + 1, position.y,
size.x - 1, size.x,
size.y - 1 size.y
); );
} }