Clear chat messages when an aircraft becomes inactive in the property tree.
This commit is contained in:
parent
380c9f90c4
commit
4fa75196ce
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,8 @@ FGAIManager::update(double dt) {
|
|||
props->setIntValue("id", -1);
|
||||
props->setBoolValue("radar/in-range", false);
|
||||
props->setIntValue("refuel/tanker", false);
|
||||
props->setStringValue("sim/multiplay/chat", "");
|
||||
props->setStringValue("sim/multiplay/transmission-freq-hz", "");
|
||||
|
||||
ai_list_itr = ai_list.erase(ai_list_itr);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue