mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
add extra safeguards
This commit is contained in:
parent
8bd155cb86
commit
2e0cac4676
1 changed files with 8 additions and 1 deletions
|
@ -38,9 +38,16 @@
|
|||
|
||||
function update(dt) {
|
||||
if (!AudioDevice.getMuted()) {
|
||||
if (overlayID) {
|
||||
deleteOverlay();
|
||||
}
|
||||
return;
|
||||
}
|
||||
updateOverlay();
|
||||
if (!overlayID) {
|
||||
createOverlay();
|
||||
} else {
|
||||
updateOverlay();
|
||||
}
|
||||
}
|
||||
|
||||
function lerp(a, b, val) {
|
||||
|
|
Loading…
Reference in a new issue