From 6a5bc614177642882cd44cd8c41390a36d2c0557 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 10 Sep 2015 15:35:09 -0400 Subject: [PATCH] v0.3.1d: fixed pitfall traps collapsing the floor when they shouldn't in some cases --- .../shatteredpixeldungeon/levels/traps/PitfallTrap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/PitfallTrap.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/PitfallTrap.java index eab3bfc74..11776af30 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/PitfallTrap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/PitfallTrap.java @@ -69,8 +69,8 @@ public class PitfallTrap extends Trap { super.disarm(); //if making a pit here wouldn't block any paths, make a pit tile instead of a disarmed trap tile. - if (!(Dungeon.level.map[pos - Level.WIDTH] == Terrain.WALL && Dungeon.level.map[pos + Level.WIDTH] == Terrain.WALL) - && !(Dungeon.level.map[pos - 1] == Terrain.WALL && Dungeon.level.map[pos + 1] == Terrain.WALL)){ + if (!(Dungeon.level.solid[pos - Level.WIDTH] && Dungeon.level.solid[pos + Level.WIDTH]) + && !(Dungeon.level.solid[pos - 1]&& Dungeon.level.solid[pos + 1])){ int c = Dungeon.level.map[pos - Level.WIDTH];