mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-20 18:10:44 -04:00
Fixed a bug with thangs not being properly scaled when first created sometimes.
This commit is contained in:
parent
6c3ff16bed
commit
f463966a22
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
|||
finishSetup: ->
|
||||
return unless @thang
|
||||
@updateBaseScale()
|
||||
@scaleFactor = @thang.scaleFactor if @thang?.scaleFactor
|
||||
@update true # Reflect initial scale and other state
|
||||
|
||||
setUpRasterImage: ->
|
||||
|
|
Loading…
Reference in a new issue