mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-08 12:23:59 +00:00
tools(rpo-replay): round live distance readout to 10 m
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0187rSCa4AKJPGw6uiuPSGyX
This commit is contained in:
1 file changed
+1
-1
@@ -129,7 +129,7 @@ export function createHud(ctx) {
|
||||
function fmtSep(m) {
|
||||
if (m >= 10e3) return `${fmtNum(m / 1000)}<small>km</small>`;
|
||||
if (m >= 1000) return `${(m / 1000).toFixed(1)}<small>km</small>`;
|
||||
return `${Math.round(m / 5) * 5}<small>m</small>`;
|
||||
return `${Math.round(m / 10) * 10}<small>m</small>`;
|
||||
}
|
||||
function perSecond(r) {
|
||||
if (r < 90) return `${Math.round(r)} sec`;
|
||||
|
||||
Reference in new issue
Block a user