mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-01 08:23:57 -04: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...)
|
anim.nominalBounds = new createjs.Rectangle(animData.bounds...)
|
||||||
if animData.frameBounds
|
if animData.frameBounds
|
||||||
anim.frameBounds = (new createjs.Rectangle(bounds...) for bounds in animData.frameBounds)
|
anim.frameBounds = (new createjs.Rectangle(bounds...) for bounds in animData.frameBounds)
|
||||||
anim.childMovieClips = @childMovieClips
|
|
||||||
|
anim.childMovieClips = @childMovieClips
|
||||||
|
|
||||||
@spriteSheet.mcPool[key].push(anim)
|
@spriteSheet.mcPool[key].push(anim)
|
||||||
return anim
|
return anim
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue