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:
parent
fbe966964b
commit
2188582dd5
1 changed files with 2 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue