mirror of
https://github.com/lubosz/overte.git
synced 2025-04-12 11:58:22 +02:00
fix cleanup order to ensure environment is re-rendered
This commit is contained in:
parent
862f26a095
commit
69f0c50a3c
1 changed files with 11 additions and 4 deletions
|
@ -232,6 +232,8 @@ function playRandomMuzak() {
|
|||
}
|
||||
|
||||
function cleanupLobby() {
|
||||
toggleEnvironmentRendering(true);
|
||||
|
||||
// for each of the 21 placeholder textures, set them back to default so the cached model doesn't have changed textures
|
||||
var panelTexturesReset = {};
|
||||
panelTexturesReset["textures"] = {};
|
||||
|
@ -249,13 +251,18 @@ function cleanupLobby() {
|
|||
panelWall = false;
|
||||
orbShell = false;
|
||||
|
||||
currentDrone.stop();
|
||||
currentMuzakInjector.stop();
|
||||
if (currentDrone) {
|
||||
currentDrone.stop();
|
||||
currentDrone = null
|
||||
}
|
||||
|
||||
currentMuzakInjector = null;
|
||||
if (currentMuzakInjector) {
|
||||
currentMuzakInjector.stop();
|
||||
currentMuzakInjector = null;
|
||||
}
|
||||
|
||||
places = {};
|
||||
toggleEnvironmentRendering(true);
|
||||
|
||||
}
|
||||
|
||||
function actionStartEvent(event) {
|
||||
|
|
Loading…
Reference in a new issue