From 59faed0a54fd0e9e23bd79851b72f04cae6270c1 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 27 Apr 2024 20:07:46 -0500 Subject: Fix hall calls being ignored if a car is already there but out of service --- dispatcherfw.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dispatcherfw.lua b/dispatcherfw.lua index 3fc2036..aac7e07 100644 --- a/dispatcherfw.lua +++ b/dispatcherfw.lua @@ -629,7 +629,7 @@ elseif event.type == "abm" or (event.iid == "run" and mem.powerstate ~= "asleep" local eligiblecars = {} local permanent = false for _,carid in pairs(mem.params.carids) do - if getdpos(carid) == i and mem.carstatus[carid].direction == "up" then permanent = true end + if getdpos(carid) == i and mem.carstatus[carid].direction == "up" and mem.carstatus[carid].state == "normal" then permanent = true end if mem.carstatus[carid].state == "normal" and mem.params.floorsserved[carid][i] then local serveshigher = false for floor,served in pairs(mem.params.floorsserved[carid]) do @@ -668,7 +668,7 @@ elseif event.type == "abm" or (event.iid == "run" and mem.powerstate ~= "asleep" local eligiblecars = {} local permanent = false for _,carid in pairs(mem.params.carids) do - if getdpos(carid) == i and mem.carstatus[carid].direction == "down" then permanent = true end + if getdpos(carid) == i and mem.carstatus[carid].direction == "down" and mem.carstatus[carid].state == "normal" then permanent = true end if mem.carstatus[carid].state == "normal" and mem.params.floorsserved[carid][i] then local serveslower = false for floor,served in pairs(mem.params.floorsserved[carid]) do -- cgit v1.2.3