Skip to content

Commit

Permalink
Elevator texture panning now takes into account the row scale of an a…
Browse files Browse the repository at this point in the history
…tlas (#149)
  • Loading branch information
Interrupt authored Oct 21, 2020
1 parent 885f50b commit 119ed4e
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) / atlas.scale;
v = reg.getV() + checkDir.getBottomWallYOffset(dir) / (atlas.scale * atlas.rowScale);
} else {
v = reg.getV() + checkDir.getWallYOffset(dir) / atlas.scale;
v = reg.getV() + checkDir.getWallYOffset(dir) / (atlas.scale * atlas.rowScale);
}

// This is ugly!
Expand Down

0 comments on commit 119ed4e

Please sign in to comment.