Fix incorrect GetMapCoordinates() within housing ward subdivisions (#1917)

Co-authored-by: Sabine Lim <thesabinelim@gmail.com>
This commit is contained in:
Sabine Lim 2024-07-17 05:00:08 +10:00 committed by GitHub
parent 378ef0a052
commit c57cc5c41f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,8 +155,12 @@ public static class MapUtil
return WorldToMap(
go.Position,
agentMap->CurrentOffsetX,
agentMap->CurrentOffsetY,
/*
* https://github.com/aers/FFXIVClientStructs/issues/1029
* Our calculations are based on Excel's Map, but AgentMap's offset values are sign-flipped in comparison
*/
-agentMap->CurrentOffsetX,
-agentMap->CurrentOffsetY,
territoryTransient?.OffsetZ ?? 0,
(uint)agentMap->CurrentMapSizeFactor,
correctZOffset);