From 09bdc9bad9e596db6b12a18e450d10e2d0653342 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Mon, 12 May 2014 19:39:16 -0700 Subject: [PATCH] Fixed initial team setting. --- app/lib/Angel.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/Angel.coffee b/app/lib/Angel.coffee index 8a9714410..b35026fa5 100644 --- a/app/lib/Angel.coffee +++ b/app/lib/Angel.coffee @@ -100,7 +100,7 @@ module.exports = class Angel extends CocoClass world.findFirstChangedFrame @shared.world @shared.world = world errorCount = (t for t in @shared.world.thangs when t.errorsOut).length - Backbone.Mediator.publish 'god:new-world-created', world: world, firstWorld: @shared.firstWorld, errorCount: errorCount, goalStates: goalStates + Backbone.Mediator.publish 'god:new-world-created', world: world, firstWorld: @shared.firstWorld, errorCount: errorCount, goalStates: goalStates, team: me.team for scriptNote in @shared.world.scriptNotes Backbone.Mediator.publish scriptNote.channel, scriptNote.event @shared.goalManager?.world = world