Decompile fn_23797 (HotkeyCount)

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

- fn_23797 HotkeyCount: logic confirmed by peer review

Peer-reviewed-by: KWDev, Tanke, cremane
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-05 13:30:07 +00:00
commit 14a7031755

View file

@ -83,15 +83,16 @@ namespace {
int HotkeyCount(LuaScript& script, int tab) {
int count = 0;
if (script.Call("GetOriginalHotKeyListSize", "d>d", tab + 1, &count)) {
int hidden = 0;
if (tab == 1) {
int hidden = 0;
for (int index = HK_FIRST_HIDDEN; index < count; ++index) {
hidden += HiddenInterfaceIndex(index);
if (HiddenInterfaceIndex(index)) {
++hidden;
}
}
return count - hidden;
}
return count - hidden;
}
return count;