Decompile fn_24152 (CSession::GetSpriteJob)

Batch #15763 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_24152 CSession::GetSpriteJob: logic confirmed by peer review

Peer-reviewed-by: eAthena, Toshiro
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-10 11:02:20 +00:00
commit 79f09e0625

View file

@ -101,15 +101,6 @@ int CSession::GetSpriteJob(int job, int costumeJob, bool spriteIndex) {
case JT_KNIGHT_H:
costumeJob = JT_CHICKEN_H;
break;
case JT_CRUSADER_H:
costumeJob = JT_CHICKEN2_H;
break;
case JT_KNIGHT_B:
costumeJob = JT_CHICKEN_B;
break;
case JT_CRUSADER_B:
costumeJob = JT_CHICKEN2_B;
break;
case JT_RUNE_KNIGHT:
costumeJob = JT_RUNE_CHICKEN;
break;
@ -146,6 +137,15 @@ int CSession::GetSpriteJob(int job, int costumeJob, bool spriteIndex) {
case JT_WINDHAWK:
costumeJob = JT_WOLF_WINDHAWK;
break;
case JT_CRUSADER_H:
costumeJob = JT_CHICKEN2_H;
break;
case JT_KNIGHT_B:
costumeJob = JT_CHICKEN_B;
break;
case JT_CRUSADER_B:
costumeJob = JT_CHICKEN2_B;
break;
}
} else {
if (job == JT_MADOGEAR || job == JT_MADOGEAR_H || job == JT_MADOGEAR_B || job == JT_MEISTER_MADOGEAR) {
@ -171,7 +171,7 @@ int CSession::GetSpriteJob(int job, int costumeJob, bool spriteIndex) {
}
if (spriteIndex == true && costumeJob > 3950) {
return costumeJob - 3950;
costumeJob -= 3950;
}
return costumeJob;