summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/battle/src/Comm')
-rw-r--r-- | src/battle/src/Comm/AddChar.elm | 2 | ||||
-rw-r--r-- | src/battle/src/Comm/SetMap.elm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/battle/src/Comm/AddChar.elm b/src/battle/src/Comm/AddChar.elm index 9c7662e..9b36f69 100644 --- a/src/battle/src/Comm/AddChar.elm +++ b/src/battle/src/Comm/AddChar.elm @@ -18,7 +18,7 @@ import Struct.ServerReply -------------------------------------------------------------------------------- internal_decoder : ( - Struct.Character.TypeAndEquipementRef -> + Struct.Character.TypeAndEquipmentRef -> Struct.ServerReply.Type ) internal_decoder char_and_refs = (Struct.ServerReply.AddCharacter char_and_refs) diff --git a/src/battle/src/Comm/SetMap.elm b/src/battle/src/Comm/SetMap.elm index 81a4a73..44a6136 100644 --- a/src/battle/src/Comm/SetMap.elm +++ b/src/battle/src/Comm/SetMap.elm @@ -45,7 +45,7 @@ deserialize_tile_instance map_width index t = (a :: (b :: c)) -> (Struct.Tile.new_instance { - x = (index % map_width), + x = (modBy map_width index), y = (index // map_width) } a @@ -57,7 +57,7 @@ deserialize_tile_instance map_width index t = _ -> (Struct.Tile.new_instance { - x = (index % map_width), + x = (modBy map_width index), y = (index // map_width) } "0" |