mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 11:17:34 +02:00
Renamed function.
This commit is contained in:
parent
83373d0efb
commit
bb91e8726f
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@
|
||||||
if (!channels.includes(message.channel)) return;
|
if (!channels.includes(message.channel)) return;
|
||||||
|
|
||||||
// If message is local, and if player is too far away from location, do nothing.
|
// If message is local, and if player is too far away from location, do nothing.
|
||||||
if (message.channel == "local" && isCloseEnough(message.position)) return;
|
if (message.channel == "local" && isTooFar(message.position)) return;
|
||||||
|
|
||||||
// Format the timestamp
|
// Format the timestamp
|
||||||
message.timeString = timeArray[0];
|
message.timeString = timeArray[0];
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
Settings.setValue("ArmoredChat-Messages", messageHistory);
|
Settings.setValue("ArmoredChat-Messages", messageHistory);
|
||||||
|
|
||||||
// Check to see if the message is close enough to the user
|
// Check to see if the message is close enough to the user
|
||||||
function isCloseEnough(messagePosition) {
|
function isTooFar(messagePosition) {
|
||||||
return Vec3.distance(MyAvatar.position, messagePosition) > maxLocalDistance;
|
return Vec3.distance(MyAvatar.position, messagePosition) > maxLocalDistance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue