summaryrefslogtreecommitdiff
path: root/controllerfw.lua
diff options
context:
space:
mode:
Diffstat (limited to 'controllerfw.lua')
-rw-r--r--controllerfw.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/controllerfw.lua b/controllerfw.lua
index 8285583..2640af2 100644
--- a/controllerfw.lua
+++ b/controllerfw.lua
@@ -732,4 +732,9 @@ local arrowenabled = {
mem.piuparrow = mem.drive.status.vel > 0 and arrowenabled[mem.carstate]
mem.pidownarrow = mem.drive.status.vel < 0 and arrowenabled[mem.carstate]
+mem.lanterns = {}
+if mem.carstate == "normal" and (mem.doorstate == "open" or mem.doorstate == "opening") then
+ mem.lanterns[getpos()] = mem.direction
+end
+
return pos,mem