From 6274c0d29cc96e732d8712ea5dc4380b5a72a3f7 Mon Sep 17 00:00:00 2001 From: Davide Cappellini Date: Thu, 17 Sep 2026 08:05:33 +0200 Subject: [PATCH] =?UTF-8?q?fix(SNNBot):=20use=202=C2=B0=20error=20gate=20f?= =?UTF-8?q?or=20firing,=20remove=20unreliable=20gunTurnRemaining=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- SNNBot_garage/src/SNNBot.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SNNBot_garage/src/SNNBot.nim b/SNNBot_garage/src/SNNBot.nim index 1a72471..7a18140 100644 --- a/SNNBot_garage/src/SNNBot.nim +++ b/SNNBot_garage/src/SNNBot.nim @@ -390,7 +390,7 @@ method run*(bot: SNNBot) = # Fire gate: gun must be aimed and settled before firing let energy = getEnergy() - let readyToFire = err < 1.0 and abs(getGunTurnRemaining()) < 1.0 and energy >= ENERGY_GUARD and bot.roundTick >= PATIENCE_TICKS + let readyToFire = err < 2.0 and energy >= ENERGY_GUARD and bot.roundTick >= PATIENCE_TICKS if readyToFire: bot.lastBulletSpeed = P2_SPEED discard setFire(2.0)