From 37e4eb22fd4c650574e5207293fb0c26e0dcfc74 Mon Sep 17 00:00:00 2001 From: Monica Moniot Date: Fri, 2 Dec 2022 13:58:33 -0500 Subject: [PATCH] updated todo --- TODO | 1 + cybersyn/scripts/central-planning.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/TODO b/TODO index 0cd1f1f..0b17f91 100644 --- a/TODO +++ b/TODO @@ -11,3 +11,4 @@ minor: close gui when the combinator is destroyed do not play close sound when a different gui is opened gui can desync if settings are changed outside of it while it is open + give the combinators a sensible reaction to low or no power diff --git a/cybersyn/scripts/central-planning.lua b/cybersyn/scripts/central-planning.lua index 104ca2d..d2edec2 100644 --- a/cybersyn/scripts/central-planning.lua +++ b/cybersyn/scripts/central-planning.lua @@ -372,6 +372,7 @@ local function tick_poll_station(map_data, mod_settings) station_id = map_data.active_station_ids[tick_data.i] station = map_data.stations[station_id] if station then + --NOTE: polling trains_limit here is expensive and not strictly necessary but using it to early out saves more ups if station.network_name and station.deliveries_total < station.entity_stop.trains_limit then break end