v0.9.2: fixed bugs with previously changed gamescene functionality

This commit is contained in:
Evan Debenham 2021-02-07 13:54:40 -05:00
parent d40aee8d4d
commit 3fe42591d9

View File

@ -554,8 +554,9 @@ public class GameScene extends PixelScene {
}
}
public synchronized boolean waitForActorThread(int msToWait ){
if (actorThread != null && actorThread.isAlive()){
public boolean waitForActorThread(int msToWait ){
synchronized (GameScene.class) {
if (actorThread == null || !actorThread.isAlive()) {
return true;
}
synchronized (actorThread) {
@ -567,7 +568,8 @@ public class GameScene extends PixelScene {
ShatteredPixelDungeon.reportException(e);
}
synchronized (actorThread) {
return Actor.processing();
return !Actor.processing();
}
}
}