From a060fe3acf041f31979e587bd85c87dad9599df0 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 20 May 2010 21:25:37 +0200 Subject: [PATCH] Stuart Buchanan: A small patch to allow the user to ignore specific MP aircraft on a per-MP instance basis by setting "controls/invisible". This property name was chosen for consistency with the existing property for AIBallistic objects. --- src/AIModel/AIMultiplayer.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AIModel/AIMultiplayer.cxx b/src/AIModel/AIMultiplayer.cxx index ab9cc5c3c..d2fb505c0 100644 --- a/src/AIModel/AIMultiplayer.cxx +++ b/src/AIModel/AIMultiplayer.cxx @@ -72,6 +72,9 @@ void FGAIMultiplayer::bind() { props->tie("refuel/contact", SGRawValuePointer(&contact)); props->setBoolValue("tanker",isTanker); + props->tie("controls/invisible", + SGRawValuePointer(&invisible)); + #define AIMPROProp(type, name) \ SGRawValueMethods(*this, &FGAIMultiplayer::get##name) @@ -97,6 +100,7 @@ void FGAIMultiplayer::unbind() { //props->untie("callsign"); props->untie("controls/allow-extrapolation"); props->untie("controls/lag-adjust-system-speed"); + props->untie("controls/invisible"); props->untie("refuel/contact"); } -- 2.39.5