mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Fix incorrect GetMapCoordinates() within housing ward subdivisions (#1917)
Co-authored-by: Sabine Lim <thesabinelim@gmail.com>
This commit is contained in:
parent
378ef0a052
commit
c57cc5c41f
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue