From b61d1abef919ae8ae4576b08ab0f7f54d1c1acef Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 10 Jul 2016 05:30:33 -0400 Subject: [PATCH] v0.4.1: fixed piranha sprites hanging around after death --- .../shatteredpixeldungeon/actors/mobs/Piranha.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java index 3f9fd4f7a..17247fe6a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java @@ -57,6 +57,7 @@ public class Piranha extends Mob { protected boolean act() { if (!Level.water[pos]) { die( null ); + sprite.killAndErase(); return true; } else { //this causes pirahna to move away when a door is closed on them.