Decompile fn_10104 (CCharacterRender::RenderRobe)
Batch #15751 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_10104 CCharacterRender::RenderRobe: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena 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
0bcfb493c6
commit
bb2222057b
1 changed files with 4 additions and 5 deletions
|
|
@ -41,11 +41,10 @@ void CCharacterRender::RenderRobe(
|
|||
CActRes* act = static_cast<CActRes*>(ResourceMgr::Instance().Load(actName));
|
||||
int frame = this->frameIndex;
|
||||
if (baseAct) {
|
||||
int baseFrame = frame;
|
||||
if ((this->actionIndex >= 0 && this->actionIndex < 8) || (this->actionIndex >= 16 && this->actionIndex <= 22)) {
|
||||
baseFrame = 0;
|
||||
}
|
||||
g_session.GetSyncedFrame(baseAct, act, this->actionIndex, baseFrame, 0, &frame);
|
||||
int action = this->actionIndex;
|
||||
g_session.GetSyncedFrame(
|
||||
baseAct, act, action, ((action >= 0 && action < 8) || (action >= 16 && action <= 22)) ? 0 : frame, 0, &frame
|
||||
);
|
||||
}
|
||||
|
||||
const ActionFrame& actionFrame = act->Frame(this->actionIndex, frame);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue