Fixed bug with sprites being offset incorrectly when starting with an action not in their ThangType.

This commit is contained in:
Nick Winter 2014-03-15 11:31:12 -07:00
parent e63e787a30
commit 4b9c7a3784

View file

@ -285,7 +285,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
################################################## ##################################################
updateAction: -> updateAction: ->
action = @determineAction() action = @determineAction()
isDifferent = action isnt @currentRootAction isDifferent = action isnt @currentRootAction or action is null
if not action and @thang?.actionActivated and not @stopLogging if not action and @thang?.actionActivated and not @stopLogging
console.error "action is", action, "for", @thang?.id, "from", @currentRootAction, @thang.action, @thang.getActionName?() console.error "action is", action, "for", @thang?.id, "from", @currentRootAction, @thang.action, @thang.getActionName?()
@stopLogging = true @stopLogging = true