v0.8.1: added a safety sync check to buff vfx on character sprites
This commit is contained in:
@@ -342,7 +342,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
||||
flashTime = FLASH_INTERVAL;
|
||||
}
|
||||
|
||||
public void add( State state ) {
|
||||
public synchronized void add( State state ) {
|
||||
switch (state) {
|
||||
case BURNING:
|
||||
burning = emitter();
|
||||
@@ -396,7 +396,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
||||
}
|
||||
}
|
||||
|
||||
public void remove( State state ) {
|
||||
public synchronized void remove( State state ) {
|
||||
switch (state) {
|
||||
case BURNING:
|
||||
if (burning != null) {
|
||||
|
||||
Reference in New Issue
Block a user