mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-28 15:03:57 -04:00
Fixed a bug with the goals.
This commit is contained in:
parent
bdbb1710eb
commit
533069dba8
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,7 @@ module.exports = class God
|
||||||
window.BOX2D_ENABLED = true
|
window.BOX2D_ENABLED = true
|
||||||
@lastSerializedWorldFrames = serialized.frames
|
@lastSerializedWorldFrames = serialized.frames
|
||||||
|
|
||||||
finishBeholdingWorld: (newWorld) ->
|
finishBeholdingWorld: (newWorld) =>
|
||||||
newWorld.findFirstChangedFrame @world
|
newWorld.findFirstChangedFrame @world
|
||||||
@world = newWorld
|
@world = newWorld
|
||||||
errorCount = (t for t in @world.thangs when t.errorsOut).length
|
errorCount = (t for t in @world.thangs when t.errorsOut).length
|
||||||
|
@ -224,6 +224,7 @@ class Angel
|
||||||
|
|
||||||
destroy: ->
|
destroy: ->
|
||||||
@dead = true
|
@dead = true
|
||||||
|
@finishBeholdingWorld = null
|
||||||
@abort()
|
@abort()
|
||||||
|
|
||||||
testWorker: =>
|
testWorker: =>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue