mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-22 10:55:19 -04:00
Redid my bobbing fix b286b24
in a way that doesn't break the LankBoss position test.
This commit is contained in:
parent
ea25224c1e
commit
8fdd2c0688
1 changed files with 3 additions and 2 deletions
|
@ -171,9 +171,10 @@ module.exports = Lank = class Lank extends CocoClass
|
|||
update: (frameChanged) ->
|
||||
# Gets the sprite to reflect what the current state of the thangs and surface are
|
||||
return false if @stillLoading
|
||||
if (frameChanged and @thang and @thang.stateChanged) or (@thang and @thang.bobHeight) or @notOfThisWorld
|
||||
thangUnchanged = @thang and @thang.stateChanged is false
|
||||
if (frameChanged and not thangUnchanged) or (@thang and @thang.bobHeight) or @notOfThisWorld
|
||||
@updatePosition()
|
||||
return false if @thang and @thang.stateChanged is false
|
||||
return false if thangUnchanged
|
||||
frameChanged = frameChanged or @targetScaleFactorX isnt @scaleFactorX or @targetScaleFactorY isnt @scaleFactorY
|
||||
if frameChanged
|
||||
@handledDisplayEvents = {}
|
||||
|
|
Loading…
Reference in a new issue