mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Magic numbers
This commit is contained in:
parent
51c22eb7db
commit
a27644ae4d
1 changed files with 2 additions and 1 deletions
|
@ -112,6 +112,7 @@
|
|||
// -Call this function to shut down the spectator camera and
|
||||
// destroy the camera entity. "isChangingDomains" is true when this function is called
|
||||
// from the "Window.domainChanged()" signal.
|
||||
var WAIT_AFTER_DOMAIN_SWITCH_BEFORE_CAMERA_DELETE_MS = 1 * 1000;
|
||||
function spectatorCameraOff(isChangingDomains) {
|
||||
|
||||
function deleteCamera() {
|
||||
|
@ -131,7 +132,7 @@
|
|||
Script.setTimeout(function () {
|
||||
deleteCamera();
|
||||
spectatorCameraOn();
|
||||
}, 1 * 1000);
|
||||
}, WAIT_AFTER_DOMAIN_SWITCH_BEFORE_CAMERA_DELETE_MS);
|
||||
} else {
|
||||
deleteCamera();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue