v2.4.0: added a check to prevent actor processing after scene change
This commit is contained in:
@@ -232,6 +232,10 @@ public class Game implements ApplicationListener {
|
||||
public static Scene scene() {
|
||||
return instance.scene;
|
||||
}
|
||||
|
||||
public static boolean switchingScene() {
|
||||
return instance.requestedReset;
|
||||
}
|
||||
|
||||
protected void step() {
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
||||
import com.watabou.noosa.Game;
|
||||
import com.watabou.utils.Bundlable;
|
||||
import com.watabou.utils.Bundle;
|
||||
import com.watabou.utils.SparseArray;
|
||||
@@ -242,7 +243,7 @@ public abstract class Actor implements Bundlable {
|
||||
do {
|
||||
|
||||
current = null;
|
||||
if (!interrupted) {
|
||||
if (!interrupted && !Game.switchingScene()) {
|
||||
float earliest = Float.MAX_VALUE;
|
||||
|
||||
for (Actor actor : all) {
|
||||
|
||||
Reference in New Issue
Block a user