Tweaked an error message to be more generally useful.

This commit is contained in:
Scott Erickson 2014-03-05 12:53:11 -08:00
parent 0a8d5b5b97
commit af265ebee8

View file

@ -252,7 +252,9 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
updateAction: ->
action = @determineAction()
isDifferent = action isnt @currentRootAction
console.error "action is", action, "for", @thang?.id, "from", @currentRootAction, @thang.action, @thang.getActionName?() if not action and @thang?.actionActivated and @thang.id is 'Artillery'
if not action and @thang?.actionActivated and not @stopLogging
console.error "action is", action, "for", @thang?.id, "from", @currentRootAction, @thang.action, @thang.getActionName?()
@stopLogging = true
@queueAction(action) if isDifferent or (@thang?.actionActivated and action.name isnt 'move')
@updateActionDirection()