From 36aee28abcb14375336db70c2fba47deaf598c9d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 14 Oct 2025 19:36:36 +0200 Subject: fix diagram max --- client/gui/menus/book/diagram.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gui/menus/book/diagram.gd b/client/gui/menus/book/diagram.gd index b0ed8a9f..f1f19399 100644 --- a/client/gui/menus/book/diagram.gd +++ b/client/gui/menus/book/diagram.gd @@ -125,4 +125,4 @@ func node_edge_connect_pos(src: DiagramNode, dst: DiagramNode) -> Vector2: if src.style == "intermediate_product" or src.style == "final_product": return src.position + dir * HSIZE else: - return src.position + dir / abs(dir.y).max(abs(dir.x)) * HSIZE + return src.position + dir / max(abs(dir.y), abs(dir.x)) * HSIZE -- cgit v1.3