From 4d89c6d9320363c366a18b1a6a1965fb797af3b2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 14 Sep 2026 17:58:53 +0200 Subject: [PATCH] Fix the sector map label pivot after the CultMath sign swap CultMath's sign(float) returns int, as HLSL does, so sign(x)/2+.5f became integer division and pinned the pivot at 0.5. Scale by .5f instead so the pivot is 0 or 1 again. The other sign( uses in Assets combine the int with a float by multiplication or compare it against a float threshold, so their values are unchanged. Co-Authored-By: Claude Opus 5 --- Assets/Scripts/UI/Menu/SectorMap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/UI/Menu/SectorMap.cs b/Assets/Scripts/UI/Menu/SectorMap.cs index e48136437..fdcf70395 100644 --- a/Assets/Scripts/UI/Menu/SectorMap.cs +++ b/Assets/Scripts/UI/Menu/SectorMap.cs @@ -148,7 +148,7 @@ public class SectorMap : MonoBehaviour var zoneText = zoneInstance.Label; zoneText.text = zone.Name; var zoneTextTransform = zoneText.GetComponent(); - zoneTextTransform.pivot = new Vector2(sign(linkDirection.x)/2+.5f,sign(linkDirection.y)/2+.5f); + zoneTextTransform.pivot = new Vector2(sign(linkDirection.x)*.5f+.5f,sign(linkDirection.y)*.5f+.5f); zoneTextTransform.localPosition = new Vector3(-linkDirection.x * LabelDistance, -linkDirection.y * LabelDistance, -1); if (zone == ActionGameManager.CurrentGalaxy.Entrance)