From b2262d9bff27a45c5fd717993e2bf8426f7fb190 Mon Sep 17 00:00:00 2001 From: Gunter Labes Date: Mon, 10 Mar 2025 23:19:24 +0100 Subject: [PATCH] Fix readability of first line of changes --- utils/wesnoth-map-diff/src/paint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/wesnoth-map-diff/src/paint.ts b/utils/wesnoth-map-diff/src/paint.ts index 13fe24c8482..ee27628730c 100644 --- a/utils/wesnoth-map-diff/src/paint.ts +++ b/utils/wesnoth-map-diff/src/paint.ts @@ -100,7 +100,7 @@ const paint = async ( return `${player}${tile.baseCode}${miscCode}` } - const getLineY = (line: number) => (diffImageHeight - slicedDiffs.length * 36) + (line - 1) * 36 + const getLineY = (line: number) => (diffImageHeight - slicedDiffs.length * 36) + line * 36 const slicedDiffs = diffs.slice(0, maxLinesOnNotes - 1)