mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Decreased severity of camera jerkiness during real-time playback.
This commit is contained in:
parent
8183d671b8
commit
b7d2bcd222
1 changed files with 1 additions and 3 deletions
|
@ -142,10 +142,8 @@ module.exports = Surface = class Surface extends CocoClass
|
|||
|
||||
setWorld: (@world) ->
|
||||
@worldLoaded = true
|
||||
lastFrame = Math.min(@getCurrentFrame(), @world.frames.length - 1)
|
||||
@world.getFrame(lastFrame).restoreState() unless @options.choosing
|
||||
@spriteBoss.world = @world
|
||||
|
||||
@restoreWorldState() unless @options.choosing
|
||||
@showLevel()
|
||||
@updateState true if @loaded
|
||||
@onFrameChanged()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue