From 79f09e06250c6aa38373affab9ac2e21c20ed47c Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 11:02:20 +0000 Subject: [PATCH] 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). --- Source/Contents/SpriteJob.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/Contents/SpriteJob.cpp b/Source/Contents/SpriteJob.cpp index f33411302..86ab52d26 100644 --- a/Source/Contents/SpriteJob.cpp +++ b/Source/Contents/SpriteJob.cpp @@ -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;