v0.6.0: fixed interrupts setting time to positive infinity
This commit is contained in:
@@ -181,7 +181,6 @@ public abstract class Actor implements Bundlable {
|
|||||||
now = Float.MAX_VALUE;
|
now = Float.MAX_VALUE;
|
||||||
current = null;
|
current = null;
|
||||||
|
|
||||||
if (!interrupted) {
|
|
||||||
for (Actor actor : all) {
|
for (Actor actor : all) {
|
||||||
|
|
||||||
//some actors will always go before others if time is equal.
|
//some actors will always go before others if time is equal.
|
||||||
@@ -192,9 +191,8 @@ public abstract class Actor implements Bundlable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (current != null) {
|
if (!interrupted && current != null) {
|
||||||
|
|
||||||
Actor acting = current;
|
Actor acting = current;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user