Skip to content

Commit

Permalink
🐛 Speed not saved during replays
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth committed Mar 11, 2017
1 parent 5767242 commit 9ffcc83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/game-launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ export function launch ({ server, song, chart, options, saveSpeed, saveLeadTime
const [ player ] = game.players

// get player's state and save options
let playerState = state.player(state.game.players[0])
autoVelocity.handleGameFinish(playerState.speed, { saveSpeed, saveLeadTime })
const playerState = state.player(state.game.players[0])
const playerSpeed = playerState.speed
autoVelocity.handleGameFinish(playerSpeed, { saveSpeed, saveLeadTime })
loadSpec.options.players[0].speed = playerSpeed

// send data to analytics & display evaluation
window.removeEventListener('beforeunload', onUnload, false)
Expand Down

0 comments on commit 9ffcc83

Please sign in to comment.