From e9abc3d690c3a145f99f09cabc302ffaa693b7ab Mon Sep 17 00:00:00 2001 From: VladislavOstapov Date: Sat, 25 Feb 2023 13:33:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B2?= =?UTF-8?q?=20=D0=BD=D0=BE=D1=87=D0=BD=D0=BE=D0=BC=20=D1=80=D0=B5=D0=B6?= =?UTF-8?q?=D0=B8=D0=BC=D0=B5=20=D0=B2=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=20=D0=BE=D0=B4=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=80=D0=BE?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0=20=D0=B5=D1=81=D0=BB=D0=B8=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=B2=D0=B8=D1=82=D1=8C=20=D0=BD=D0=BE=D1=87=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D0=B1=D0=B0=D1=80=D0=B0=D0=B1=D0=B0=D0=BD=D1=8B?= =?UTF-8?q?=20=D0=BD=D0=B5=D0=BA=D1=83=D0=B4=D0=B0,=20=D1=82=D0=BE=20?= =?UTF-8?q?=D0=B1=D0=B0=D1=80=D0=B0=D0=B1=D0=B0=D0=BD=20=D0=B1=D1=83=D0=B4?= =?UTF-8?q?=D0=B5=D1=82=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B2=20=D0=B7=D0=BE=D0=BD=D1=83=20=D0=BE=D0=B1=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils.c b/utils.c index fae0c19..9167381 100644 --- a/utils.c +++ b/utils.c @@ -203,7 +203,11 @@ short _get_dest_zone(struct barrel *bar, char robot_id) { if (hla_night_mode) { short nz = get_first_night_zone(); if (one_robot_mode) { - return nz; + if (nz < 0) { + return hla_exchange_zone; + } else { + return nz; + } } else { if (nz < hla_exchange_zone) { return hla_exchange_zone;