This commit is contained in:
Michael Gibson 2025-02-28 09:33:49 -07:00
parent 6ceac75b7a
commit 5c60f669ec

View file

@ -1699,8 +1699,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
var flippedX;
if (this.getFlip()) {
var xMod1 = ( numberOfTiles.x + ( x % numberOfTiles.x ) ) % numberOfTiles.x;
flippedX = x + numberOfTiles.x - xMod1 - xMod1 - 1;
var xMod = ( numberOfTiles.x + ( x % numberOfTiles.x ) ) % numberOfTiles.x;
flippedX = x + numberOfTiles.x - xMod - xMod - 1;
} else {
flippedX = x;
}