Disabled auto-submit for Ace of Coders ranking.

This commit is contained in:
Nick Winter 2015-09-17 14:42:13 -07:00
parent 6506b95bad
commit 7a56ecfe4d

View file

@ -101,9 +101,10 @@ module.exports = class CastButtonView extends CocoView
@casting = false @casting = false
if @hasCastOnce # Don't play this sound the first time if @hasCastOnce # Don't play this sound the first time
@playSound 'cast-end', 0.5 @playSound 'cast-end', 0.5
myHeroID = if me.team is 'ogres' then 'Hero Placeholder 1' else 'Hero Placeholder' # Worked great for live Ace of Coders tournament, but probably annoying for asynchronous tournament mode.
if @ladderSubmissionView and not e.world.thangMap[myHeroID]?.errorsOut #myHeroID = if me.team is 'ogres' then 'Hero Placeholder 1' else 'Hero Placeholder'
_.delay (=> @ladderSubmissionView?.rankSession()), 1000 if @ladderSubmissionView #if @ladderSubmissionView and not e.world.thangMap[myHeroID]?.errorsOut
# _.delay (=> @ladderSubmissionView?.rankSession()), 1000 if @ladderSubmissionView
@hasCastOnce = true @hasCastOnce = true
@updateCastButton() @updateCastButton()
@world = e.world @world = e.world