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:
firebingo 2018-05-30 20:24:01 -07:00
parent 72cc69cb0b
commit 5d51d0f2a9
3 changed files with 13 additions and 8 deletions

View file

@ -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);