mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 21:23:18 +02:00
repairs for new injector API in lobby script
This commit is contained in:
parent
4894a5b414
commit
6a5c0fd9f2
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue