Fixed a bug that was bringing the thang editor down.

This commit is contained in:
Scott Erickson 2014-05-17 11:38:33 -07:00
parent f99a95768e
commit df222461bf

View file

@ -498,7 +498,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
Backbone.Mediator.publish ourEventName, newEvent
addHealthBar: ->
return unless @thang?.health? and "health" in (@thang?.hudProperties ? [])
return unless @thang?.health? and "health" in (@thang?.hudProperties ? []) and @options.floatingLayer
healthColor = healthColors[@thang?.team] ? healthColors["neutral"]
healthOffset = @getOffset 'aboveHead'
bar = @healthBar = createProgressBar(healthColor, healthOffset)