mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
Fixed CocoSprite getOffset to not apply scale to registration points.
This commit is contained in:
parent
5b11e132b2
commit
40e896868b
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
|||
scale *= @options.resolutionFactor if prop is 'registration'
|
||||
pos.x *= scale
|
||||
pos.y *= scale
|
||||
if @thang
|
||||
if @thang and prop isnt 'registration'
|
||||
scaleFactor = @thang.scaleFactor ? 1
|
||||
pos.x *= @thang.scaleFactorX ? scaleFactor
|
||||
pos.y *= @thang.scaleFactorY ? scaleFactor
|
||||
|
|
Loading…
Reference in a new issue