commit fb61919c96658bc6ac3eaf94ccbfbfdf8b73e190
parent ff0e5fe75c20801f7aabb3209bba8f9d22127a19
Author: Daniel Barlow <dan@telent.net>
Date: Sat, 23 Nov 2024 12:02:09 +0000
remove unneeded record update
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/src/TileMap.elm b/frontend/src/TileMap.elm
@@ -61,7 +61,7 @@ reflect c = Coord -c.x -c.y
-- translate : a -> a -> a
translate base offset =
- { base | x = (base.x + offset.x), y = (base.y + offset.y) }
+ { x = (base.x + offset.x), y = (base.y + offset.y) }
translatePixels : Coord -> ZoomLevel -> (Int, Int) -> Coord
translatePixels old z (x, y) = translate old (pixelsToCoord z (x, y))