Fixed audio not loading if tsv file didn't load any audio.
Made list of mstids an array of allowed mstids instead of making a weird if block for allowed ids.
This commit is contained in:
parent
72cc69cb0b
commit
5d51d0f2a9
3 changed files with 13 additions and 8 deletions
|
@ -26,6 +26,7 @@ let screenSizeTimeout = undefined;
|
|||
let isMuted = false;
|
||||
let volume = 0.5;
|
||||
let prevMission = '{Select}';
|
||||
const availableMstIds = [202070, 202013];
|
||||
|
||||
function onBodyLoaded() {
|
||||
bodyLoaded = true;
|
||||
|
@ -119,9 +120,7 @@ function buildMissionSelectList() {
|
|||
opt.innerText = 'Select Mission';
|
||||
} else {
|
||||
let m = utage.missionsList[i];
|
||||
//Only allowing 3.5 right now
|
||||
//if(!(m.MstId >= 104001 && m.MstId <= 104008)) {
|
||||
if(m.MstId !== 202070) {
|
||||
if(!availableMstIds.includes(m.MstId)) {
|
||||
continue;
|
||||
}
|
||||
opt.setAttribute('value', m.MstId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue