mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-07 10:34:46 -04:00
Fixed bug with playback ending early.
This commit is contained in:
parent
714d17fd7f
commit
e1b35251a3
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ module.exports = class World
|
|||
@goalManager.setGoalState(goalID, status)
|
||||
|
||||
endWorld: (victory=false, delay=3, tentative=false) ->
|
||||
@totalFrames = Math.min(@totalFrames, @frames.length + Math.floor(delay / @dt)) - 1 # end a few seconds later
|
||||
@totalFrames = Math.min(@totalFrames, @frames.length + Math.floor(delay / @dt)) # end a few seconds later
|
||||
@victory = victory # TODO: should just make this signify the winning superteam
|
||||
@victoryIsTentative = tentative
|
||||
status = if @victory then 'won' else 'lost'
|
||||
|
|
Loading…
Add table
Reference in a new issue