aboutsummaryrefslogtreecommitdiff
path: root/src/Step.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-07 12:20:27 +0100
committerJoris Guyonvarch2015-03-07 12:20:27 +0100
commit336816d2e8ab4afff1562123dfde61bf3a68e61c (patch)
tree698d8b8c70ba1ee1ddb895dfcd3b2322f6860794 /src/Step.elm
parent8f8df67f3795b02c6918d7df832580e9de7d0802 (diff)
Save player config when relaunching game
Diffstat (limited to 'src/Step.elm')
-rw-r--r--src/Step.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Step.elm b/src/Step.elm
index e2b7fa7..dd340a5 100644
--- a/src/Step.elm
+++ b/src/Step.elm
@@ -21,7 +21,7 @@ step {dir, inputKeysDown, delta} {time, keysDown, score, player, cloud, bestScor
let hostilePoints = cloud.points (otherConfig player.config)
in if(playerPointsCollision time player hostilePoints) then
let newBestScore = if(score > bestScore) then score else bestScore
- in initialGame seed player.pos newBestScore
+ in initialGame seed player.pos player.config newBestScore
else
let newTime = time + delta
newPlayer = playerStep delta dir (newKeyCode keysDown inputKeysDown) player