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