mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Fixed loading marks so they are positioned correctly when they load and the world is paused.
This commit is contained in:
parent
52733d5a1e
commit
fe93d31929
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue