mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 12:13:36 +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];
|
||||
soundProperties.timeWithoutAvatarInRange += UPDATE_TIME;
|
||||
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
|
||||
soundProperties.soundInjector.stop();
|
||||
delete soundEntityMap[soundEntity];
|
||||
|
|
Loading…
Reference in a new issue