v0.4.1: fixed piranha sprites hanging around after death
This commit is contained in:
parent
5bab9a84be
commit
b61d1abef9
|
@ -57,6 +57,7 @@ public class Piranha extends Mob {
|
||||||
protected boolean act() {
|
protected boolean act() {
|
||||||
if (!Level.water[pos]) {
|
if (!Level.water[pos]) {
|
||||||
die( null );
|
die( null );
|
||||||
|
sprite.killAndErase();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
//this causes pirahna to move away when a door is closed on them.
|
//this causes pirahna to move away when a door is closed on them.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user