Decompile fn_24221 (CSession::UpdateBodyStyle)
Batch #2016 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_24221 CSession::UpdateBodyStyle: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
e4be8f4190
commit
39e5860ee8
2 changed files with 15 additions and 1 deletions
|
|
@ -13,6 +13,18 @@ bool g_homunculusAutoFeed;
|
|||
// GLOBAL: gl_24493
|
||||
bool g_petAutoFeed;
|
||||
|
||||
// OFFSET: 0x00E488C0
|
||||
// FUNCTION: fn_24221
|
||||
void CSession::UpdateBodyStyle(int job, int style, int renderJob) {
|
||||
if (style >= 2 || this->IsSecondJob(renderJob)) {
|
||||
this->m_bodyStyle = style;
|
||||
} else if (static_cast<unsigned>(job - 4001) <= 21) {
|
||||
this->m_bodyStyle = job <= 4007;
|
||||
} else {
|
||||
this->m_bodyStyle = static_cast<unsigned>(job - 4001) <= 6;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E48930
|
||||
// FUNCTION: fn_24222
|
||||
void CSession::SetHomunculusAutoFeed(bool enabled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue