Skip to content
Snippets Groups Projects
Commit de35bc2c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Only add accessible programs to the xtrn list

parent 2931bdc4
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -535,8 +535,10 @@ function Xtrnsec(sec) ...@@ -535,8 +535,10 @@ function Xtrnsec(sec)
this.ypos=console.screen_rows-j-1; this.ypos=console.screen_rows-j-1;
this.xpos=40-xtrnsecprogwidth-2; this.xpos=40-xtrnsecprogwidth-2;
this.add("\xda"+bars80.substr(0,xtrnsecprogwidth)+"\xbf",undefined,undefined,"",""); this.add("\xda"+bars80.substr(0,xtrnsecprogwidth)+"\xbf",undefined,undefined,"","");
for(j=0; j<xtrn_area.sec_list[sec].prog_list.length && j<console.screen_rows-3; j++) for(j=0; j<xtrn_area.sec_list[sec].prog_list.length && j<console.screen_rows-3; j++) {
if (xtrn_area.sec_list[sec].prog_list[j].can_access)
this.add("|"+hotkeys.substr(j,1)+" "+xtrn_area.sec_list[sec].prog_list[j].name,j.toString(),xtrnsecprogwidth); this.add("|"+hotkeys.substr(j,1)+" "+xtrn_area.sec_list[sec].prog_list[j].name,j.toString(),xtrnsecprogwidth);
}
this.add("\xc0"+bars80.substr(0,xtrnsecprogwidth)+"\xd9",undefined,undefined,"",""); this.add("\xc0"+bars80.substr(0,xtrnsecprogwidth)+"\xd9",undefined,undefined,"","");
} }
Xtrnsec.prototype=ShellLB.prototype; Xtrnsec.prototype=ShellLB.prototype;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment