From 96d7905f7faef941f5454fd2c8b0b50a294fd26c Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 18 Oct 2017 20:59:41 +0200 Subject: Borked mouse controls for the navigator, it seems. --- elm/battlemap/src/Shim/Battlemap/Tile.elm | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'elm/battlemap/src/Shim/Battlemap') diff --git a/elm/battlemap/src/Shim/Battlemap/Tile.elm b/elm/battlemap/src/Shim/Battlemap/Tile.elm index c243f0a..1e11cb5 100644 --- a/elm/battlemap/src/Shim/Battlemap/Tile.elm +++ b/elm/battlemap/src/Shim/Battlemap/Tile.elm @@ -3,20 +3,17 @@ module Shim.Battlemap.Tile exposing (generate) import Array import List -import Battlemap.Location import Battlemap.Tile from_int : Int -> Int -> (Int, Int) -> Battlemap.Tile.Type -from_int map_width index (class, cost) = +from_int map_width index (icon_id, cost) = { location = - (Battlemap.Location.get_ref - { - x = (index % map_width), - y = (index // map_width) - } - ), - class = class, + { + x = (index % map_width), + y = (index // map_width) + }, + icon_id = (toString icon_id), crossing_cost = cost } -- cgit v1.2.3-70-g09d2