From 3bbfb6cca8c1ee78e7ba8f2ac356f1e8cb3380c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alois=20Se=C4=8Dk=C3=A1r?= Date: Thu, 27 Jul 2023 20:55:38 +0200 Subject: [PATCH] #114 - no advance line with NA --- utils/wbsc-output.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/wbsc-output.ts b/utils/wbsc-output.ts index 3bd16d1..3464cc8 100644 --- a/utils/wbsc-output.ts +++ b/utils/wbsc-output.ts @@ -54,7 +54,9 @@ function renderAction (battingOrder: number, clear: boolean, mainInput: WBSCInpu // process 'safe' situation function renderAdvance (output: WBSCOutput) { - drawAdvanceLine(Math.max(output.base, output.errorTarget)) + if (!output.na) { + drawAdvanceLine(Math.max(output.base, output.errorTarget)) + } writeSituation(output) }