mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-16 00:19:50 -05:00
Fixed one last instance of cocoSprite using its resolutionFactor value.
This commit is contained in:
parent
4b87607599
commit
14f3fb6486
1 changed files with 1 additions and 2 deletions
|
@ -24,7 +24,6 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
|||
ranges: null
|
||||
|
||||
options:
|
||||
resolutionFactor: SPRITE_RESOLUTION_FACTOR
|
||||
groundLayer: null
|
||||
textLayer: null
|
||||
floatingLayer: null
|
||||
|
@ -501,7 +500,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
|||
pos = x: pos.x, y: pos.y
|
||||
if not @isRaster
|
||||
scale = @getActionProp 'scale', null, 1
|
||||
scale *= @options.resolutionFactor if prop is 'registration'
|
||||
scale *= @imageObject.parent.resolutionFactor if prop is 'registration'
|
||||
pos.x *= scale
|
||||
pos.y *= scale
|
||||
if @thang and prop isnt 'registration'
|
||||
|
|
Loading…
Reference in a new issue