Fixed skipping through real-time playback to fire when the final goals are actually ready.

This commit is contained in:
Nick Winter 2014-10-02 17:49:14 -07:00
parent 3cdb8ff416
commit 0c09a468c7

View file

@ -604,7 +604,7 @@ module.exports = class PlayLevelView extends RootView
if finishedLoading
@lastWorldFramesLoaded = 0
if @waitingForSubmissionComplete
@onSubmissionComplete()
_.defer @onSubmissionComplete # Give it a frame to make sure we have the latest goals
@waitingForSubmissionComplete = false
else
@lastWorldFramesLoaded = @world.frames.length