v0.4.1: bugfixes to item slots and item sprites

This commit is contained in:
Evan Debenham
2016-07-20 18:32:32 -04:00
committed by Evan Debenham
parent 093635c454
commit 3de8225f9b
2 changed files with 88 additions and 68 deletions
@@ -174,7 +174,6 @@ public class ItemSprite extends MovieClip {
public ItemSprite view(Item item){
view(item.image(), item.glowing());
if (this.emitter != null) this.emitter.killAndErase();
Emitter emitter = item.emitter();
if (emitter != null && parent != null) {
emitter.pos( this );
@@ -185,7 +184,7 @@ public class ItemSprite extends MovieClip {
}
public ItemSprite view( int image, Glowing glowing ) {
if (this.emitter != null) this.emitter.on = false;
if (this.emitter != null) this.emitter.killAndErase();
emitter = null;
frame( film.get( image ) );
if ((this.glowing = glowing) == null) {