v0.8.2: fixed deadlocks in charsprite caused by safety check

I really need to adjust some graphics logic to never be called from the actor thread, that would properly prevent this.
This commit is contained in:
Evan Debenham 2020-07-22 13:46:09 -04:00
parent 16822095df
commit af9d9300db

View File

@ -339,7 +339,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
flashTime = FLASH_INTERVAL; flashTime = FLASH_INTERVAL;
} }
public synchronized void add( State state ) { public void add( State state ) {
switch (state) { switch (state) {
case BURNING: case BURNING:
burning = emitter(); burning = emitter();
@ -393,7 +393,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
} }
} }
public synchronized void remove( State state ) { public void remove( State state ) {
switch (state) { switch (state) {
case BURNING: case BURNING:
if (burning != null) { if (burning != null) {