From 5c60f669ecbe02d2db8cb961b690c3e4a166006a Mon Sep 17 00:00:00 2001 From: Michael Gibson Date: Fri, 28 Feb 2025 09:33:49 -0700 Subject: [PATCH] Clean up --- src/tiledimage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index a5792445..74b07893 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -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; }