Skip to content

Commit

Permalink
revert small change
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed May 1, 2024
1 parent 60ab78a commit 597ad1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tileEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,8 @@ class TileEngine {

let flipped = 0;

// read flags
// @ifdef TILEENGINE_TILED
// read flags
let flippedHorizontal = tile & FLIPPED_HORIZONTALLY;
let flippedVertical = tile & FLIPPED_VERTICALLY;
flipped = flippedHorizontal || flippedVertical;
Expand All @@ -665,7 +665,7 @@ class TileEngine {

let x = (index % width) * tilewidth;
let y = ((index / width) | 0) * tileheight;
let sx = (offset % cols | 0) * (tilewidth + margin);
let sx = (offset % cols) * (tilewidth + margin);
let sy = ((offset / cols) | 0) * (tileheight + margin);

// @ifdef TILEENGINE_TILED
Expand Down

0 comments on commit 597ad1d

Please sign in to comment.