| summaryrefslogtreecommitdiff | 
diff options
Diffstat (limited to 'src/battle/src/Comm/SetMap.elm')
| -rw-r--r-- | src/battle/src/Comm/SetMap.elm | 4 | 
1 files changed, 2 insertions, 2 deletions
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"  | 


