This commit is contained in:
Janek
2024-04-10 22:54:50 +02:00
parent 45081a21b1
commit a0a7be3022
2 changed files with 5 additions and 4 deletions

View File

@@ -227,10 +227,11 @@ function render() {
// Defuse stamp line
if (radarData.bombCanDefuse) {
console.log("radarData.bombDefuseEnd")
ctx.strokeStyle = "green"
ctx.beginPath()
ctx.moveTo(130 + (maxWidth-2) * (radarData.bombDefuseLeft / 40), 16)
ctx.lineTo(130 + (maxWidth-2) * (radarData.bombDefuseLeft / 40), 32)
ctx.moveTo(130 + (maxWidth-2) * (radarData.bombDefuseEnd / 40), 16)
ctx.lineTo(130 + (maxWidth-2) * (radarData.bombDefuseEnd / 40), 32)
ctx.stroke()
}
}