v2.3.0: jump and pushing effects now correctly trigger sprite sorting
This commit is contained in:
@@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.effects;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
||||||
import com.watabou.noosa.Camera;
|
import com.watabou.noosa.Camera;
|
||||||
import com.watabou.noosa.Game;
|
import com.watabou.noosa.Game;
|
||||||
@@ -122,6 +123,7 @@ public class Pushing extends Actor {
|
|||||||
killAndErase();
|
killAndErase();
|
||||||
Actor.remove(Pushing.this);
|
Actor.remove(Pushing.this);
|
||||||
if (callback != null) callback.call();
|
if (callback != null) callback.call();
|
||||||
|
GameScene.sortMobSprites();
|
||||||
|
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -718,6 +718,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
|||||||
if (jumpCallback != null) {
|
if (jumpCallback != null) {
|
||||||
jumpCallback.call();
|
jumpCallback.call();
|
||||||
}
|
}
|
||||||
|
GameScene.sortMobSprites();
|
||||||
|
|
||||||
} else if (tweener == motion) {
|
} else if (tweener == motion) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user