From 6d15a759027f11d67bcee065e3047619d34753be Mon Sep 17 00:00:00 2001 From: VladislavOstapov Date: Sat, 25 Feb 2023 13:47:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=82=D0=B5=D1=81=D1=82=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B2=D0=BE=20=D0=BC=D1=86=D0=B5?= =?UTF-8?q?=D0=BD=D1=81=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/utils.c b/utils.c index 9167381..7b2b02d 100644 --- a/utils.c +++ b/utils.c @@ -202,18 +202,14 @@ short _get_dest_zone(struct barrel *bar, char robot_id) { if (button_unload) { if (hla_night_mode) { short nz = get_first_night_zone(); - if (one_robot_mode) { - if (nz < 0) { - return hla_exchange_zone; - } else { + if (nz < hla_exchange_zone) { + if (one_robot_mode && nz >= 0) { return nz; + } else { + return hla_exchange_zone; } } else { - if (nz < hla_exchange_zone) { - return hla_exchange_zone; - } else { - return nz; - } + return nz; } } else { if (one_robot_mode) {