v0.8.2d: adjusted mob adding logic to fix a rare race condition crash
This commit is contained in:
parent
67627f7a2f
commit
f8e244bbdd
|
@ -778,8 +778,8 @@ public class GameScene extends PixelScene {
|
||||||
|
|
||||||
public static void add( Mob mob ) {
|
public static void add( Mob mob ) {
|
||||||
Dungeon.level.mobs.add( mob );
|
Dungeon.level.mobs.add( mob );
|
||||||
Actor.add( mob );
|
|
||||||
scene.addMobSprite( mob );
|
scene.addMobSprite( mob );
|
||||||
|
Actor.add( mob );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void addSprite( Mob mob ) {
|
public static void addSprite( Mob mob ) {
|
||||||
|
@ -788,8 +788,8 @@ public class GameScene extends PixelScene {
|
||||||
|
|
||||||
public static void add( Mob mob, float delay ) {
|
public static void add( Mob mob, float delay ) {
|
||||||
Dungeon.level.mobs.add( mob );
|
Dungeon.level.mobs.add( mob );
|
||||||
Actor.addDelayed( mob, delay );
|
|
||||||
scene.addMobSprite( mob );
|
scene.addMobSprite( mob );
|
||||||
|
Actor.addDelayed( mob, delay );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void add( EmoIcon icon ) {
|
public static void add( EmoIcon icon ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user