mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-29 23:43:51 -04:00
Fixed position updating for indie sprites.
This commit is contained in:
parent
c05cc1c0ad
commit
ffdb2ef6b4
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ module.exports = Lank = class Lank extends CocoClass
|
||||||
# Gets the sprite to reflect what the current state of the thangs and surface are
|
# Gets the sprite to reflect what the current state of the thangs and surface are
|
||||||
return false if @stillLoading
|
return false if @stillLoading
|
||||||
return false if @thang and @thang.stateChanged is false
|
return false if @thang and @thang.stateChanged is false
|
||||||
@updatePosition() if frameChanged or @thang.bobHeight
|
@updatePosition() if frameChanged or @thang.bobHeight or @notOfThisWorld
|
||||||
frameChanged = frameChanged or @targetScaleFactorX isnt @scaleFactorX or @targetScaleFactorY isnt @scaleFactorY
|
frameChanged = frameChanged or @targetScaleFactorX isnt @scaleFactorX or @targetScaleFactorY isnt @scaleFactorY
|
||||||
if frameChanged
|
if frameChanged
|
||||||
@handledDisplayEvents = {}
|
@handledDisplayEvents = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue