v0.6.0b: fixed crashes when gamescene closed while waiting on animations
This commit is contained in:
parent
4467146d33
commit
0cc15d9a69
|
@ -216,11 +216,15 @@ public abstract class Actor implements Bundlable {
|
|||
|
||||
interrupted = interrupted || Thread.interrupted();
|
||||
|
||||
doNext = !interrupted && acting.act();
|
||||
|
||||
if (doNext && !Dungeon.hero.isAlive()) {
|
||||
if (interrupted){
|
||||
doNext = false;
|
||||
current = null;
|
||||
} else {
|
||||
doNext = acting.act();
|
||||
if (doNext && !Dungeon.hero.isAlive()) {
|
||||
doNext = false;
|
||||
current = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
doNext = false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user