v0.4.1: fixed piranha sprites hanging around after death

This commit is contained in:
Evan Debenham 2016-07-10 05:30:33 -04:00 committed by Evan Debenham
parent 5bab9a84be
commit b61d1abef9

View File

@ -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.