From 77fda7e5b96b492a8ae0f5a3181a1446182df1a2 Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 14 May 2024 21:29:53 -0500 Subject: Fix cars trying to answer hall calls in both directions at the same time --- controllerfw.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllerfw.lua b/controllerfw.lua index f4c5b07..09f62f1 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -1020,7 +1020,7 @@ if mem.carmotion then mem.groupupcalls[getpos()] = nil if (not hallcall) and (not getnextcallabove()) and getnextcallbelow() then mem.direction = "down" - elseif mem.dncalls[getpos()] and (not mem.upcalls[getpos()]) and (not getnextcallabove(nil,true)) then + elseif (not hallcall) and mem.dncalls[getpos()] and (not mem.upcalls[getpos()]) and (not getnextcallabove(nil,true)) then mem.direction = "down" mem.dncalls[getpos()] = nil mem.swingdncalls[getpos()] = nil @@ -1032,7 +1032,7 @@ if mem.carmotion then mem.groupdncalls[getpos()] = nil if (not hallcall) and (not getnextcallbelow()) and getnextcallabove() then mem.direction = "up" - elseif mem.upcalls[getpos()] and (not mem.dncalls[getpos()]) and (not getnextcallbelow(nil,true)) then + elseif (not hallcall) and mem.upcalls[getpos()] and (not mem.dncalls[getpos()]) and (not getnextcallbelow(nil,true)) then mem.direction = "up" mem.upcalls[getpos()] = nil mem.swingupcalls[getpos()] = nil -- cgit v1.2.3