mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-03 09:23:41 -04:00
Fixed bug with sprites being offset incorrectly when starting with an action not in their ThangType.
This commit is contained in:
parent
e63e787a30
commit
4b9c7a3784
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue