Enable while True auto yielding for all level types

This commit is contained in:
Matt Lott 2015-10-20 06:42:43 -07:00
parent b03091c35d
commit 3ed755076b
2 changed files with 1 additions and 2 deletions
app
lib
views/play/level/tome

View file

@ -13,7 +13,7 @@ module.exports.createAetherOptions = (options) ->
skipDuplicateUserInfoInFlow: true # Optimization that won't work if we are stepping with frames
yieldConditionally: options.functionName is 'plan'
simpleLoops: true
whileTrueAutoYield: options.whileTrueAutoYield ? false
whileTrueAutoYield: true
globals: ['Vector', '_']
problems:
jshint_W040: {level: 'ignore'}

View file

@ -159,7 +159,6 @@ module.exports = class Spell
skipProtectAPI: skipProtectAPI
includeFlow: includeFlow
problemContext: problemContext
whileTrueAutoYield: @levelType is 'course'
aether = new Aether aetherOptions
if @worker
workerMessage =