Skip to content

Commit

Permalink
Merge pull request #95 from RayshenOmega/main
Browse files Browse the repository at this point in the history
Disabled POI Display Teleport
  • Loading branch information
RayshenOmega authored Oct 29, 2024
2 parents 05b8199 + df9964f commit 021b637
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/feats/display_poi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,22 @@ namespace Feats {
poi->VisibleZoomRange.UpperBound.Value = 1.0f;
poi->ValidBigMapDistance = 0.0f;
poi->ValidMinimapDistance = 0.0f;
poi->bIsCanTransfer = true;
poi->bIsCanShowTips = false;
poi->bIsCanInteract = true;

if (iconClassName.Number == 0 &&
poi->MapIconInfoClassName.ToString() == "SkillTransferMapIconInfo") {
iconClassName = poi->MapIconInfoClassName;
}
// Disabled Nan Yin's POI Teleport Exploit (Was patched)
// poi->bIsCanTransfer = true;
// poi->bIsCanShowTips = false;
// poi->bIsCanInteract = true;

// if (iconClassName.Number == 0 &&
// poi->MapIconInfoClassName.ToString() == "SkillTransferMapIconInfo") {
// iconClassName = poi->MapIconInfoClassName;
// }
}

// for (size_t i = 0; i < totalRows; i++) {
// const auto poi = *(SDK::FMiniMapPOIData **)(firstIndex + i * 0x18);
// poi->MapIconInfoClassName = iconClassName;
// }

for (size_t i = 0; i < totalRows; i++) {
const auto poi = *(SDK::FMiniMapPOIData **)(firstIndex + i * 0x18);
poi->MapIconInfoClassName = iconClassName;
Expand Down Expand Up @@ -139,4 +145,4 @@ namespace Feats {
}
}
} // namespace DisplayPoi
} // namespace Feats
} // namespace Feats

0 comments on commit 021b637

Please sign in to comment.