Stuart, 

Excellent idea and one I think many will appreciate. I haven't had time to look 
at it yet so please excuse the question if its obvious from within the code: 

Does this reset with every MP session, or is it easy to clear the list either 
selectively or in its entirety? 

All the best, 

Alex
On 20 May 2010, at 20:08, Stuart Buchanan wrote:

> Hi All,
> 
> Please find below 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.
> 
> Once the source change is committed (and I've got a working git clone
> of fg-data), I intend to integrate this with the MP player dialog so
> that
> selecting "Ignore" not only ignores chat from a particular MP user,
> but also hides their aircraft. This will make it easier to ignore
> people
> "mucking about" at KSFO in particular.
> 
> -Stuart
> 
> diff --git a/src/AIModel/AIMultiplayer.cxx b/src/AIModel/AIMultiplayer.cxx
> index ab9cc5c..29accef 100644
> --- a/src/AIModel/AIMultiplayer.cxx
> +++ b/src/AIModel/AIMultiplayer.cxx
> @@ -72,6 +72,9 @@ void FGAIMultiplayer::bind() {
>     props->tie("refuel/contact", SGRawValuePointer<bool>(&contact));
>     props->setBoolValue("tanker",isTanker);
> 
> +    props->tie("controls/invisible",
> +        SGRawValuePointer<bool>(&invisible));
> +
> #define AIMPROProp(type, name) \
> SGRawValueMethods<FGAIMultiplayer, type>(*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");
> }
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel


------------------------------------------------------------------------------

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to