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.
Este commit está contenido en:
fire bingo 2018-05-30 20:24:01 -07:00
padre 72cc69cb0b
commit 5d51d0f2a9
Se han modificado 3 ficheros con 13 adiciones y 8 borrados

Ver fichero

@ -153,12 +153,18 @@ class audioController {
}
loadSounds(soundMap, callback) {
this.loader = new bufferLoader(this.audioCtx, soundMap, (percent) => {
if(!soundMap || soundMap.length === 0) {
if (callback) {
callback(percent);
callback(100);
}
});
this.loader.load();
} else {
this.loader = new bufferLoader(this.audioCtx, soundMap, (percent) => {
if (callback) {
callback(percent);
}
});
this.loader.load();
}
}
resetAll() {

Ver fichero

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

@ -1 +1 @@
Subproject commit 802d85f23c63a92df9a8e9e9acf73c96ecc599b0
Subproject commit 33001c747cc5bad3ce398f72058088fad34124be