From 8501abc9cf992ef48401fb9831d2b8b0bd69d8fc Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 14 Sep 2016 21:12:14 -0400 Subject: [PATCH] v0.4.2b: fixed sprites of deleted mobs still showing --- .../shatteredpixeldungeon/levels/PrisonBossLevel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java index 01bd07a8f..5f67d9160 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java @@ -266,6 +266,8 @@ public class PrisonBossLevel extends Level { for (Mob mob : Dungeon.level.mobs.toArray(new Mob[Dungeon.level.mobs.size()])){ if (mob != tengu && (safeArea == null || !safeArea.inside(cellToPoint(mob.pos)))){ mob.destroy(); + if (mob.sprite != null) + mob.sprite.killAndErase(); } } for (Plant plant : plants.values()){