mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Workaround for #2259, although I haven't been able to reproduce when it happens.
This commit is contained in:
parent
7b34f90230
commit
5decf7ae36
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ module.exports = class Label extends CocoClass
|
|||
@layer.updateLayerOrder()
|
||||
|
||||
update: ->
|
||||
return unless @text
|
||||
return unless @text and @sprite.sprite
|
||||
offset = @sprite.getOffset? (if @style in ['dialogue', 'say'] then 'mouth' else 'aboveHead')
|
||||
offset ?= x: 0, y: 0 # temp (if not Lank)
|
||||
rotation = @sprite.getRotation()
|
||||
|
|
Loading…
Reference in a new issue