From b15e14970e71092b46e43d42a30510e4d1c50890 Mon Sep 17 00:00:00 2001 From: VladislavOstapov Date: Sat, 19 Nov 2022 12:58:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=81=D0=BB=D0=B5=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=B3=D0=BE=D0=B2=D0=BE=D1=80=D0=B0=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B0=D1=83=D1=87=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- emulator.cpp | 2 +- scheduler.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/emulator.cpp b/emulator.cpp index 99c2726..f68a96e 100644 --- a/emulator.cpp +++ b/emulator.cpp @@ -98,7 +98,7 @@ static void image_draw_borders() { image_insert_sprite(8, 1, "LOAD LOAD DEFA W-1A W-1B ETCH ETCH W-2A W-2B " " GAL GAL GAL GAL GAL GAL GAL GAL " - "W3-A W3-B PASS W4-A W4-B UNLD", true); + "W-3A W-3B PASS W-4A W-4B UNLD", true); // счетчик тиков sprintf(tmp, "tic: %d", current_tic); diff --git a/scheduler.c b/scheduler.c index 0785c5b..b122f71 100644 --- a/scheduler.c +++ b/scheduler.c @@ -88,6 +88,7 @@ short can_move(struct barrel* bar) { case PROCESS_WASHING_2B: // промывка 2Б, нужно цинкование (зоны 9-16) + // TODO сделать приоритет на барабан, который больше всего ждет if (!zone_is_busy(9 + galvanizing_zone)) { return 9 + galvanizing_zone; } @@ -136,6 +137,7 @@ short can_move(struct barrel* bar) { break; case PROCESS_RETURN_1: // последняя промывка, нужно разрешение на выгрузку + // TODO сделать так, чтобы в 0 зоне барабаны убирались, а в 1 появлялись if (schedulerUnloadButton) { // нужна хотя бы одна свободная выгрузка if (!zone_is_busy(0) || !zone_is_busy(1)) { @@ -199,7 +201,6 @@ struct barrel makeBarrel(short flags, short zone, short timer, short process) { } - void schedule_robot_1(struct robot_cmd* cmd) { static short transaction_state = 0; if (transaction_state == 0) {