瀏覽代碼

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"
}
}


Loading…
取消
儲存