Decompile fn_20074 (CRagEffect::Init)
Batch #16653 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_20074 CRagEffect::Init: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, alisonrag 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
e30832ebc4
commit
bb504f6122
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "Contents/Effects/Core/EffectActor.h"
|
||||
#include "Contents/Effects/Core/EffectTypes.h"
|
||||
#include "Contents/Effects/Particles/Particle.h"
|
||||
#include "Contents/Effects/Core/RagEffect.h"
|
||||
#include "Contents/Effects/Core/RagEffectState.h"
|
||||
#include "Contents/Configuration/ServiceOptions.h"
|
||||
|
|
@ -705,9 +706,9 @@ void CRagEffect::Init(EffectActor* parent, int id, vector3d deltaPos) {
|
|||
|
||||
auto* resource = static_cast<CEZeffectRes*>(this->state.resource);
|
||||
this->state.resourceData = &resource->maximumFrame;
|
||||
this->state.endLayer = resource->clipCount;
|
||||
this->state.endLayer = static_cast<EZeffectData*>(this->state.resourceData)->clipCount;
|
||||
|
||||
if (resource->clips[0].frameCount == 0) {
|
||||
if (static_cast<EZeffectData*>(this->state.resourceData)->clips[0].frameCount == 0) {
|
||||
--this->state.endLayer;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue