From 11d7de3e8545f302e2d1509051faa4814c44c8ac Mon Sep 17 00:00:00 2001
From: mfranz <mfranz>
Date: Wed, 11 Jun 2008 20:05:46 +0000
Subject: [PATCH] enable the Multiplayer menu if any of txport and rxport is
 set

---
 Nasal/gui.nas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Nasal/gui.nas b/Nasal/gui.nas
index 3d17480a6..dcc00b855 100644
--- a/Nasal/gui.nas
+++ b/Nasal/gui.nas
@@ -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")));