add extra safeguards

This commit is contained in:
Triplelexx 2017-03-14 01:25:39 +00:00
parent 8bd155cb86
commit 2e0cac4676

View file

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