aboutsummaryrefslogtreecommitdiff
path: root/src/Update/Update.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-21 21:11:10 +0100
committerJoris Guyonvarch2015-03-21 21:11:10 +0100
commit466d5dfdf398ba8c8665c841e04dafea7c288b95 (patch)
treec1b000be76541d248a0b84d0a3109661867d434c /src/Update/Update.elm
parentbe2663265cc7205ff690a2fbf3346913c812085d (diff)
Adding a progress bar to the timer time
Diffstat (limited to 'src/Update/Update.elm')
-rw-r--r--src/Update/Update.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Update/Update.elm b/src/Update/Update.elm
index f96a128..fabe0e8 100644
--- a/src/Update/Update.elm
+++ b/src/Update/Update.elm
@@ -62,7 +62,7 @@ update action model =
DeltaTime delta ->
{ model
| currentTime <- model.currentTime + delta
- , timers <- substractTimersTime delta model.timers
+ , timers <- Dict.map (\id timer -> updateTimer (SubstractTime delta) timer) model.timers
}
UpdateTimer id action ->
let maybeTimerEdition = filterMaybe (\timerEdition -> timerEdition.id == id) model.timerEdition