Skip to content

Commit

Permalink
Handle panning textures from any scale of texture atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
Interrupt committed Oct 14, 2020
1 parent 2e04f22 commit 69e63a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dungeoneer/src/com/interrupt/dungeoneer/gfx/Tesselator.java
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,9 @@ else if(dir == TileEdges.East) {
float v;

if(bottomWallIndex != null && bottomWallIndex >= i) {
v = reg.getV() + checkDir.getBottomWallYOffset(dir);
v = reg.getV() + checkDir.getBottomWallYOffset(dir) / atlas.scale;
} else {
v = reg.getV() + checkDir.getWallYOffset(dir);
v = reg.getV() + checkDir.getWallYOffset(dir) / atlas.scale;
}

// This is ugly!
Expand Down

0 comments on commit 69e63a9

Please sign in to comment.