repairs for new injector API in lobby script

This commit is contained in:
Stephen Birarda 2015-02-11 16:16:01 -08:00
parent 4894a5b414
commit 6a5c0fd9f2

View file

@ -227,10 +227,10 @@ function cleanupLobby() {
panelWall = false;
orbShell = false;
Audio.stopInjector(currentDrone);
currentDrone.stop();
currentDrone = null;
Audio.stopInjector(currentMuzakInjector);
currentMuzakInjector.stop();
currentMuzakInjector = null;
places = {};
@ -354,7 +354,7 @@ function update(deltaTime) {
Overlays.editOverlay(descriptionText, { position: textOverlayPosition() });
// if the reticle is up then we may need to play the next muzak
if (currentMuzakInjector && !Audio.isInjectorPlaying(currentMuzakInjector)) {
if (currentMuzakInjector && !currentMuzakInjector.isPlaying()) {
playNextMuzak();
}
}