From 5d7ffe420339156569cec58f618dd139041042a7 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 12 Dec 2016 02:19:58 -0500 Subject: [PATCH] v0.5.0: fixed raised walls stitching in the reverse order --- .../shatteredpixeldungeon/tiles/DungeonTileSheet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/DungeonTileSheet.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/DungeonTileSheet.java index 29a526f70..29445ecc8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/DungeonTileSheet.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/DungeonTileSheet.java @@ -176,7 +176,7 @@ public class DungeonTileSheet { **********************************************************************/ private static final int RAISED_WALLS = xy(1, 8); //32 slots - //+1 for walls to the right, +2 for walls to the left + //+1 for open to the right, +2 for open to the left public static final int RAISED_WALL = RAISED_WALLS+0; public static final int RAISED_WALL_DECO = RAISED_WALLS+4; //wall that appears behind a top/bottom doorway @@ -200,8 +200,8 @@ public class DungeonTileSheet { result = getVisualWithAlts(result, pos); - if (wallStitcheable.contains(right)) result += 1; - if (wallStitcheable.contains(left)) result += 2; + if (!wallStitcheable.contains(right)) result += 1; + if (!wallStitcheable.contains(left)) result += 2; return result; }