mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-30 07:53:45 -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) ->
|
setWorld: (@world) ->
|
||||||
@worldLoaded = true
|
@worldLoaded = true
|
||||||
lastFrame = Math.min(@getCurrentFrame(), @world.frames.length - 1)
|
|
||||||
@world.getFrame(lastFrame).restoreState() unless @options.choosing
|
|
||||||
@spriteBoss.world = @world
|
@spriteBoss.world = @world
|
||||||
|
@restoreWorldState() unless @options.choosing
|
||||||
@showLevel()
|
@showLevel()
|
||||||
@updateState true if @loaded
|
@updateState true if @loaded
|
||||||
@onFrameChanged()
|
@onFrameChanged()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue