mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Fixed mark sprite scaling some more.
This commit is contained in:
parent
042fd7ac0d
commit
a8abe8c887
1 changed files with 2 additions and 1 deletions
|
@ -234,7 +234,7 @@ module.exports = class Mark extends CocoClass
|
|||
if @name is 'debug' or (@name is 'shadow' and @sprite.thang?.shape in ["rectangle", "box"])
|
||||
@mark.rotation = @sprite.thang.rotation * 180 / Math.PI
|
||||
|
||||
updateScale: ->
|
||||
updateScale: (log) ->
|
||||
if @name is 'bounds' and (@sprite.thang.width isnt @lastWidth or @sprite.thang.height isnt @lastHeight)
|
||||
oldMark = @mark
|
||||
@buildBounds()
|
||||
|
@ -243,6 +243,7 @@ module.exports = class Mark extends CocoClass
|
|||
oldMark.parent.removeChild oldMark
|
||||
|
||||
if @markSprite?
|
||||
@markSprite.scaleFactor = 1.2
|
||||
@markSprite.updateScale()
|
||||
return unless @name in ["selection", "target", "repair", "highlight"]
|
||||
if @sprite?.imageObject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue