mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Fixed a bug where SegmentedSprite would sometimes error out (particularly the door on death).
This commit is contained in:
parent
64acbe4580
commit
67bd01b397
1 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,8 @@ module.exports = class SegmentedSprite extends createjs.SpriteContainer
|
|||
anim.nominalBounds = new createjs.Rectangle(animData.bounds...)
|
||||
if animData.frameBounds
|
||||
anim.frameBounds = (new createjs.Rectangle(bounds...) for bounds in animData.frameBounds)
|
||||
anim.childMovieClips = @childMovieClips
|
||||
|
||||
anim.childMovieClips = @childMovieClips
|
||||
|
||||
@spriteSheet.mcPool[key].push(anim)
|
||||
return anim
|
||||
|
|
Loading…
Reference in a new issue