Fixed loading marks so they are positioned correctly when they load and the world is paused.

This commit is contained in:
Scott Erickson 2014-03-12 10:08:57 -07:00
parent 52733d5a1e
commit fe93d31929
2 changed files with 2 additions and 0 deletions

View file

@ -155,6 +155,7 @@ module.exports = class Mark extends CocoClass
onLoadedThangType: ->
@build()
@toggle(@toggleTo) if @toggleTo?
Backbone.Mediator.publish 'sprite:loaded'
update: (pos=null) ->
return false unless @on and @mark

View file

@ -22,6 +22,7 @@ module.exports = class SpriteBoss extends CocoClass
'god:new-world-created': 'onNewWorld'
'tome:cast-spells': 'onCastSpells'
'camera:dragged': 'onCameraDragged'
'sprite:loaded': -> @update(true)
constructor: (@options) ->
super()