1
0
Fork 0

enable the Multiplayer menu if any of txport and rxport is set

This commit is contained in:
mfranz 2008-06-11 20:05:46 +00:00
parent 510842c15a
commit 11d7de3e85

View file

@ -95,7 +95,7 @@ INIT = func {
# enable/disable menu entries
menuEnable("fuel-and-payload", getprop("/sim/flight-model") == "yasim");
menuEnable("autopilot", props.globals.getNode("/autopilot/KAP140/locks") == nil);
menuEnable("multiplayer", getprop("/sim/multiplay/rxport"));
menuEnable("multiplayer", getprop("/sim/multiplay/txport") or getprop("/sim/multiplay/rxport"));
menuEnable("tutorial-start", size(props.globals.getNode("/sim/tutorials").getChildren("tutorial")));
menuEnable("joystick-info", size(props.globals.getNode("/input/joysticks").getChildren("js")));