mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 13:57:43 +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(
|
return WorldToMap(
|
||||||
go.Position,
|
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,
|
territoryTransient?.OffsetZ ?? 0,
|
||||||
(uint)agentMap->CurrentMapSizeFactor,
|
(uint)agentMap->CurrentMapSizeFactor,
|
||||||
correctZOffset);
|
correctZOffset);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue