mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 07:39:44 +02:00
log
This commit is contained in:
parent
609ddda74e
commit
208007c9d8
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ function handleActiveSoundEntities() {
|
||||||
var soundProperties = soundEntityMap[soundEntity];
|
var soundProperties = soundEntityMap[soundEntity];
|
||||||
soundProperties.timeWithoutAvatarInRange += UPDATE_TIME;
|
soundProperties.timeWithoutAvatarInRange += UPDATE_TIME;
|
||||||
if (soundProperties.timeWithoutAvatarInRange > EXPIRATION_TIME && soundProperties.soundInjector) {
|
if (soundProperties.timeWithoutAvatarInRange > EXPIRATION_TIME && soundProperties.soundInjector) {
|
||||||
|
print("NO AVATARS NEAR THIS ENTITY FOR A WHILE. DELETING!")
|
||||||
// An avatar hasn't been within range of this sound entity recently, so remove it from map
|
// An avatar hasn't been within range of this sound entity recently, so remove it from map
|
||||||
soundProperties.soundInjector.stop();
|
soundProperties.soundInjector.stop();
|
||||||
delete soundEntityMap[soundEntity];
|
delete soundEntityMap[soundEntity];
|
||||||
|
|
Loading…
Reference in a new issue