v3.3.6: added a sync check to actor processing while iterating all
This commit is contained in:
@@ -252,6 +252,7 @@ public abstract class Actor implements Bundlable {
|
||||
if (!interrupted && !Game.switchingScene()) {
|
||||
float earliest = Float.MAX_VALUE;
|
||||
|
||||
synchronized (Actor.class) {
|
||||
for (Actor actor : all) {
|
||||
|
||||
//some actors will always go before others if time is equal.
|
||||
@@ -263,6 +264,7 @@ public abstract class Actor implements Bundlable {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (current != null) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user