From 776e49872ac2030009e8297676cfbc97808e79c8 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 2 Jan 2017 01:16:54 -0500 Subject: [PATCH] v0.5.0: fixed patch generation using level width instead of height --- .../com/shatteredpixel/shatteredpixeldungeon/levels/Patch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Patch.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Patch.java index 10cebcf9c..7342b1a24 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Patch.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Patch.java @@ -28,7 +28,7 @@ public class Patch { public static boolean[] generate( Level level, float seed, int nGen ) { int w = level.width(); - int h = level.width(); + int h = level.height(); boolean[] cur = new boolean[level.length()]; boolean[] off = new boolean[level.length()];