Fixed a bug with the goals.

This commit is contained in:
Scott Erickson 2014-02-12 09:55:19 -08:00
parent bdbb1710eb
commit 533069dba8

View file

@ -106,7 +106,7 @@ module.exports = class God
window.BOX2D_ENABLED = true
@lastSerializedWorldFrames = serialized.frames
finishBeholdingWorld: (newWorld) ->
finishBeholdingWorld: (newWorld) =>
newWorld.findFirstChangedFrame @world
@world = newWorld
errorCount = (t for t in @world.thangs when t.errorsOut).length
@ -224,6 +224,7 @@ class Angel
destroy: ->
@dead = true
@finishBeholdingWorld = null
@abort()
testWorker: =>