v0.8.1: added a safety sync check to buff vfx on character sprites

This commit is contained in:
Evan Debenham 2020-05-09 19:36:58 -04:00
parent 42f8aa77d2
commit 7e2f63edba

View File

@ -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) {