       else
         name = nameOrFrame
         return if @animation?.name is name
-        animation = @animations.play name
-        @animation = animation
+        @animation = @animations.play name
 
       @debug 'animation', nameOrFrame
 


    _updateAnimations: ->
      unless @isInMidAir() or @nextAction is 'none'
        return if @nextAction is 'stop' and @animations.frame is 17 # Patch.
        @_changeAnimation @nextAction, @animation?.loop
        return


        @debugTextItems[label] = "#{label}: #{value} #{details}"

    isInMidAir: -> @state is 'rising' or @state is 'falling'

    update: ->
      @_updateBaseMovement()
