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.
This commit is contained in:
parent
38687c9e06
commit
a060fe3acf
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue