| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-11-08 21:06:25 +0100 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-11-08 21:06:25 +0100 | 
| commit | 1d9b24ce1c50c8c6044954cfd2d3f3c40af90d9e (patch) | |
| tree | 4837fee52b91ba6e37d93ae91b7767c6610e068d /src | |
| parent | 212ac342a31c5c6e0e6152d3ed3a74b1e28b6755 (diff) | |
Having issues sending the right chars to update...
Diffstat (limited to 'src')
| -rw-r--r-- | src/roster-editor/src/Comm/UpdateRoster.elm | 9 | ||||
| -rw-r--r-- | src/roster-editor/src/Update/SendRoster.elm | 10 | 
2 files changed, 10 insertions, 9 deletions
| diff --git a/src/roster-editor/src/Comm/UpdateRoster.elm b/src/roster-editor/src/Comm/UpdateRoster.elm index eabdd5e..8c1a960 100644 --- a/src/roster-editor/src/Comm/UpdateRoster.elm +++ b/src/roster-editor/src/Comm/UpdateRoster.elm @@ -35,10 +35,11 @@ try_encoding model =                 (Json.Encode.list                    (List.map                       (Struct.Character.encode) -                     (List.filter -                        (Struct.Character.get_was_edited) -                        (Array.toList model.characters) -                     ) +                     (Array.toList model.characters) +                    -- (List.filter +                    --    (Struct.Character.get_was_edited) +                    --    (Array.toList model.characters) +                   --  )                    )                 )              ) diff --git a/src/roster-editor/src/Update/SendRoster.elm b/src/roster-editor/src/Update/SendRoster.elm index b6f0510..9ab1c9f 100644 --- a/src/roster-editor/src/Update/SendRoster.elm +++ b/src/roster-editor/src/Update/SendRoster.elm @@ -21,11 +21,11 @@ apply_to : Struct.Model.Type -> (Struct.Model.Type, (Cmd Struct.Event.Type))  apply_to model =     (        {model | -         characters = -            (Array.map -               (Struct.Character.set_was_edited False) -               model.characters -            ) +         characters = model.characters +--            (Array.map + --              (Struct.Character.set_was_edited False) +  --             model.characters +   --         )        },        (case (Comm.UpdateRoster.try model) of           (Just cmd) -> cmd | 


