cleaner code

This commit is contained in:
James B. Pollack 2016-08-04 16:17:21 -07:00
parent c0cfee371e
commit f93ed56124

View file

@ -549,12 +549,7 @@ function isMoving() {
}
function isTooCloseToTeleport(position) {
var distance = Vec3.distance(MyAvatar.position, position);
if (distance <= TELEPORT_CANCEL_RANGE) {
return true
} else {
return false
}
return Vec3.distance(MyAvatar.position, position) <= TELEPORT_CANCEL_RANGE;
}
function registerMappings() {