Update no-smoke logic

This commit is contained in:
Jonathan Redpath 2018-11-19 14:28:27 +00:00
parent 7cfb30f815
commit ff85ac3d87

View file

@ -68,13 +68,13 @@ var messages_memo = func {
gnd_splrs.active = 0; gnd_splrs.active = 0;
} }
if (getprop("/controls/switches/seatbelt-sign") == 1 and getprop("/ECAM/left-msg") != "TO-MEMO" and getprop("/ECAM/left-msg") != "LDG-MEMO") { if (getprop("/controls/lighting/seatbelt-sign") == 1 and getprop("/ECAM/left-msg") != "TO-MEMO" and getprop("/ECAM/left-msg") != "LDG-MEMO") {
seatbelts.active = 1; seatbelts.active = 1;
} else { } else {
seatbelts.active = 0; seatbelts.active = 0;
} }
if (getprop("/controls/switches/no-smoking-sign") == 1 and getprop("/gear/gear[1]/wow") == 1 and getprop("/ECAM/left-msg") != "TO-MEMO" and getprop("/ECAM/left-msg") != "LDG-MEMO") { # should go off after takeoff assuming switch is in auto due to old logic from the days when smoking was allowed! if (getprop("/controls/lighting/no-smoking-sign") == 1 and getprop("/ECAM/left-msg") != "TO-MEMO" and getprop("/ECAM/left-msg") != "LDG-MEMO") { # should go off after takeoff assuming switch is in auto due to old logic from the days when smoking was allowed!
nosmoke.active = 1; nosmoke.active = 1;
} else { } else {
nosmoke.active = 0; nosmoke.active = 0;