Decompile 2 functions in Source/Contents/Effects/EffectResourceSwitcher.cpp
Batch #18561 by eAthena: 2 byte-identical, 0 confirmed by peer review. - fn_03093 EffectResourceSwitcher::SetNames: byte-identical - fn_06969 CEZ2STREffectEx::IsAlive: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
81c97ebe42
commit
b72aec112c
1 changed files with 5 additions and 3 deletions
|
|
@ -120,7 +120,9 @@ void EffectResourceSwitcher::SetNames(const std::string& source, const std::stri
|
|||
EffectLists* effects = g_effectMgr;
|
||||
this->effect = static_cast<CEZ2STREffectEx*>(
|
||||
effects->Spawn(actor->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId(this->sourceName), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0));
|
||||
this->spawnPosition = actor->render.position;
|
||||
this->spawnPosition.x = actor->render.position.x;
|
||||
this->spawnPosition.y = actor->render.position.y;
|
||||
this->spawnPosition.z = actor->render.position.z;
|
||||
}
|
||||
|
||||
// OFFSET: 0x005A22E0
|
||||
|
|
@ -336,10 +338,10 @@ bool CEZ2STREffectEx::IsAlive() {
|
|||
}
|
||||
|
||||
if (emitter->looping == 1) {
|
||||
return CEffect::IsAlive();
|
||||
return this->ActorExists();
|
||||
}
|
||||
|
||||
if (emitter->lifetime == 0.0f) {
|
||||
if (0.0f == emitter->lifetime) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue