Decompile fn_21667 (CGameMode::AddMiniMapEffectMarker)

Batch #18537 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_21667 CGameMode::AddMiniMapEffectMarker: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, kyoshi, cremane
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-12 17:38:08 +00:00
commit 2188582dd5

View file

@ -7455,8 +7455,7 @@ std::map<int, MiniMapEffectMarker> g_miniMapEffectMarkers;
// FUNCTION: fn_21667
__declspec(noinline) void CGameMode::AddMiniMapEffectMarker(const unsigned char* packet) {
const MiniMapEffectMarkerPacket* marker = reinterpret_cast<const MiniMapEffectMarkerPacket*>(packet);
const int key = marker->key;
auto found = g_miniMapEffectMarkers.find(key);
auto found = g_miniMapEffectMarkers.find(marker->key);
if (found != g_miniMapEffectMarkers.end()) {
found->second.x = marker->x;
found->second.y = marker->y;
@ -7464,7 +7463,7 @@ __declspec(noinline) void CGameMode::AddMiniMapEffectMarker(const unsigned char*
return;
}
g_miniMapEffectMarkers.emplace(key, MiniMapEffectMarker{0x78, marker->x, marker->y});
g_miniMapEffectMarkers.insert({marker->key, {0x78, marker->x, marker->y}});
}
struct ActorMessage32 {