소스 검색

Set fixPrefix to false on the sightlines

This makes them switch to kilometers automatically
master
Fen Dweller 4 년 전
부모
커밋
557e2add4b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      macrovision.js

+ 2
- 0
macrovision.js 파일 보기

@@ -617,6 +617,7 @@ function updateRatios() {

const sightline = math.sqrt(math.add(first, second)).to(config.height.units[0].unit.name)

sightline.fixPrefix = false
text += selectedEntity.name + " could see for " + math.format(sightline, { precision: 3 }) + "\n"
}
}
@@ -636,6 +637,7 @@ function updateRatios() {

const sightline = math.sqrt(math.subtract(first, second)).to(config.height.units[0].unit.name)

sightline.fixPrefix = false
text += selectedEntity.name + " could see " + prevSelectedEntity.name + " from " + math.format(sightline, { precision: 3 }) + " away\n"
}
}


불러오는 중...
취소
저장