mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-30 07:53:45 -04:00
Fixed skipping through real-time playback to fire when the final goals are actually ready.
This commit is contained in:
parent
3cdb8ff416
commit
0c09a468c7
1 changed files with 1 additions and 1 deletions
|
@ -604,7 +604,7 @@ module.exports = class PlayLevelView extends RootView
|
||||||
if finishedLoading
|
if finishedLoading
|
||||||
@lastWorldFramesLoaded = 0
|
@lastWorldFramesLoaded = 0
|
||||||
if @waitingForSubmissionComplete
|
if @waitingForSubmissionComplete
|
||||||
@onSubmissionComplete()
|
_.defer @onSubmissionComplete # Give it a frame to make sure we have the latest goals
|
||||||
@waitingForSubmissionComplete = false
|
@waitingForSubmissionComplete = false
|
||||||
else
|
else
|
||||||
@lastWorldFramesLoaded = @world.frames.length
|
@lastWorldFramesLoaded = @world.frames.length
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue