summaryrefslogtreecommitdiff
path: root/controller.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2025-04-04 22:49:57 -0500
committercheapie <no-email-for-you@example.com>2025-04-04 22:49:57 -0500
commita887141fb409475ade542b3cb16c97579d27d830 (patch)
treef1625510d80faf9833f03c1c4597f910352ba3e2 /controller.lua
parent4014345978b5fa3274b2746eff3bdca14468e532 (diff)
downloadcelevator-a887141fb409475ade542b3cb16c97579d27d830.tar
celevator-a887141fb409475ade542b3cb16c97579d27d830.tar.gz
celevator-a887141fb409475ade542b3cb16c97579d27d830.tar.bz2
celevator-a887141fb409475ade542b3cb16c97579d27d830.tar.xz
celevator-a887141fb409475ade542b3cb16c97579d27d830.zip
Swing operation enhancementsHEADmain
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/controller.lua b/controller.lua
index cbe9ab3..0a43eff 100644
--- a/controller.lua
+++ b/controller.lua
@@ -454,6 +454,12 @@ function celevator.controller.finish(pos,mem,changedinterrupts)
local olddownbuttonlights = oldmem.dncalls or {}
local newupbuttonlights = mem.upcalls or {}
local newdownbuttonlights = mem.dncalls or {}
+ if mem.params and mem.params.groupmode == "group" then
+ oldupbuttonlights = oldmem.swingupcalls
+ olddownbuttonlights = oldmem.swingdncalls
+ newupbuttonlights = mem.swingupcalls
+ newdownbuttonlights = mem.swingdncalls
+ end
local callbuttons = carinfo.callbuttons
for _,button in pairs(callbuttons) do
if oldupbuttonlights[button.landing] ~= newupbuttonlights[button.landing] then