1
0
Fork 0

enable multiplayer menu only in MP mode

This commit is contained in:
mfranz 2008-06-11 18:46:54 +00:00
parent 4f7481fea8
commit 55670ccb35

View file

@ -95,6 +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("tutorial-start", size(props.globals.getNode("/sim/tutorials").getChildren("tutorial")));
menuEnable("joystick-info", size(props.globals.getNode("/input/joysticks").getChildren("js")));