mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 20:13:40 +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
|
// -Call this function to shut down the spectator camera and
|
||||||
// destroy the camera entity. "isChangingDomains" is true when this function is called
|
// destroy the camera entity. "isChangingDomains" is true when this function is called
|
||||||
// from the "Window.domainChanged()" signal.
|
// from the "Window.domainChanged()" signal.
|
||||||
|
var WAIT_AFTER_DOMAIN_SWITCH_BEFORE_CAMERA_DELETE_MS = 1 * 1000;
|
||||||
function spectatorCameraOff(isChangingDomains) {
|
function spectatorCameraOff(isChangingDomains) {
|
||||||
|
|
||||||
function deleteCamera() {
|
function deleteCamera() {
|
||||||
|
@ -131,7 +132,7 @@
|
||||||
Script.setTimeout(function () {
|
Script.setTimeout(function () {
|
||||||
deleteCamera();
|
deleteCamera();
|
||||||
spectatorCameraOn();
|
spectatorCameraOn();
|
||||||
}, 1 * 1000);
|
}, WAIT_AFTER_DOMAIN_SWITCH_BEFORE_CAMERA_DELETE_MS);
|
||||||
} else {
|
} else {
|
||||||
deleteCamera();
|
deleteCamera();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue