From 55670ccb35e6ffa7ca2ce80bfda6a209e7637c9a Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 11 Jun 2008 18:46:54 +0000 Subject: [PATCH] enable multiplayer menu only in MP mode --- Nasal/gui.nas | 1 + 1 file changed, 1 insertion(+) diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 01d645c04..3d17480a6 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -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")));