mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-12 13:55:01 +02:00
cleanup a couple of comments
This commit is contained in:
parent
154834b0ab
commit
22ab3fc7b5
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,6 @@ function showOverlays() {
|
||||||
var identifiers = AvatarList.getAvatarIdentifiers();
|
var identifiers = AvatarList.getAvatarIdentifiers();
|
||||||
|
|
||||||
for (i = 0; i < identifiers.length; ++i) {
|
for (i = 0; i < identifiers.length; ++i) {
|
||||||
// get the position for this avatar
|
|
||||||
var identifier = identifiers[i];
|
var identifier = identifiers[i];
|
||||||
|
|
||||||
if (identifier === null) {
|
if (identifier === null) {
|
||||||
|
@ -46,6 +45,7 @@ function showOverlays() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get the position for this avatar
|
||||||
var avatar = AvatarList.getAvatar(identifier);
|
var avatar = AvatarList.getAvatar(identifier);
|
||||||
var avatarPosition = avatar && avatar.position;
|
var avatarPosition = avatar && avatar.position;
|
||||||
|
|
||||||
|
@ -107,10 +107,10 @@ Controller.mousePressEvent.connect(function(event){
|
||||||
// matched to an overlay, ask for the matching avatar to be ignored
|
// matched to an overlay, ask for the matching avatar to be ignored
|
||||||
Users.ignore(ignoreOverlays[i]['avatarID']);
|
Users.ignore(ignoreOverlays[i]['avatarID']);
|
||||||
|
|
||||||
// remove the actual overlay
|
// remove the actual overlay so it is no longer rendered
|
||||||
Overlays.deleteOverlay(ignoreOverlay);
|
Overlays.deleteOverlay(ignoreOverlay);
|
||||||
|
|
||||||
// remove the overlay from our internal array
|
// remove the overlay ID and avatar ID from our internal array
|
||||||
ignoreOverlays.splice(i, 1);
|
ignoreOverlays.splice(i, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue