Decompile fn_24158 (CSession::GetBodyStyle)

Batch #16958 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_24158 CSession::GetBodyStyle: logic confirmed by peer review

Peer-reviewed-by: Yommy, alisonrag, br4yan
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-11 13:49:11 +00:00
commit 66462bb4e9

View file

@ -1908,7 +1908,7 @@ bool CSession::IsPartyRecommendTarget(std::uint32_t aid) {
// OFFSET: 0x00E2F710
// FUNCTION: fn_24158
int CSession::GetBodyStyle(int job, int style, int renderJob) {
if (style >= 2 || static_cast<unsigned>(renderJob - JT_RUNE_KNIGHT_2ND) < JT_SECOND_JOB_END - JT_RUNE_KNIGHT_2ND) {
if (style >= 2 || static_cast<unsigned>(renderJob - JT_RUNE_KNIGHT_2ND) <= JT_SECOND_JOB_END - JT_RUNE_KNIGHT_2ND - 1) {
return style;
}