Decompile fn_10217 (UIRuneSetList::OnWheel)

Batch #16352 by youko: 0 byte-identical, 1 confirmed by peer review.

- fn_10217 UIRuneSetList::OnWheel: logic confirmed by peer review

Peer-reviewed-by: eAthena, Yommy, 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 19:03:39 +00:00
commit 0b2270a810

View file

@ -485,19 +485,7 @@ void UIRuneSystemWnd::OnProcess() {
// OFFSET: 0x0081CF10
// FUNCTION: fn_10217
void UIRuneSetList::OnWheel(int delta) {
const int previous = this->position;
int next = previous + (delta < 0 ? 1 : -1);
if (next < 0) {
next = 0;
}
if (next > this->maximum) {
next = this->maximum;
}
this->position = next;
if (previous != next) {
this->Invalidate();
}
this->ScrollBy(2 * (delta < 0) - 1);
}
// OFFSET: 0x0081D460