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:
parent
b2f52c65a7
commit
14a7031755
1 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue