Decompile fn_07447 (CShowEffect::Close)
Batch #17393 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_07447 CShowEffect::Close: logic confirmed by peer review Peer-reviewed-by: eAthena, 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
2fa263e933
commit
313d229f03
1 changed files with 5 additions and 4 deletions
|
|
@ -75,11 +75,12 @@ void CShowEffect::Close() {
|
|||
const std::uint32_t actorId = this->actor;
|
||||
CRenderObject* target = FindActor(actorId);
|
||||
|
||||
for (const auto& entry : this->effects) {
|
||||
for (auto it = this->effects.begin(); it != this->effects.end(); ++it) {
|
||||
if (target) {
|
||||
target->SendMsg(nullptr, AM_DELETE_TAGGED_EFFECT, 0, entry.first, entry.first >> 31, entry.second, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
} else if (g_effectMgr->HasAllocator(entry.second)) {
|
||||
g_effectMgr->Retire(actorId, entry.first, entry.second);
|
||||
target->SendMsg(nullptr, AM_DELETE_TAGGED_EFFECT, 0, static_cast<int>(static_cast<std::int64_t>(it->first)),
|
||||
static_cast<int>(static_cast<std::int64_t>(it->first) >> 32), it->second, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
} else if (g_effectMgr->HasAllocator(it->second)) {
|
||||
g_effectMgr->Retire(actorId, it->first, it->second);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue