Fix for WizardSprite scale thing.

This commit is contained in:
Nick Winter 2014-05-20 12:32:26 -07:00
parent 86736d8f4a
commit 88a5685c37

View file

@ -47,6 +47,13 @@ module.exports = class WizardSprite extends IndieSprite
thang.pos.z += thang.bobHeight
thang
finishSetup: ->
@updateBaseScale()
@scaleFactor = @thang.scaleFactor if @thang?.scaleFactor
@updateScale()
@updateRotation()
# Don't call general update() because Thang isn't built yet
onPlayerStatesChanged: (e) ->
for playerID, state of e.states
continue unless playerID is @thang.id