1
0
Fork 0

rwy info isn't always available

This commit is contained in:
mfranz 2007-10-04 22:07:37 +00:00
parent 321fbbbcab
commit b7ddc05287

View file

@ -194,6 +194,8 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
settimer(func {
setlistener("/sim/atc/runway", func {
var rwy = cmdarg().getValue();
if (rwy == nil)
return;
if (!(getprop("/sim/presets/airport-id") == "KSFO" and rwy == "28R"))
setprop("/sim/messages/atc", "You are on runway " ~ rwy ~ ".");
}, 1);