From 119ed4e93e229347c2ee1ffa4269affdae59d8c8 Mon Sep 17 00:00:00 2001 From: Chad Cuddigan Date: Wed, 21 Oct 2020 11:27:15 -0700 Subject: [PATCH] Elevator texture panning now takes into account the row scale of an atlas (#149) --- Dungeoneer/src/com/interrupt/dungeoneer/gfx/Tesselator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dungeoneer/src/com/interrupt/dungeoneer/gfx/Tesselator.java b/Dungeoneer/src/com/interrupt/dungeoneer/gfx/Tesselator.java index 2a97d994..a4262784 100644 --- a/Dungeoneer/src/com/interrupt/dungeoneer/gfx/Tesselator.java +++ b/Dungeoneer/src/com/interrupt/dungeoneer/gfx/Tesselator.java @@ -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!