X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fhla%2FRTIObjectInstance.hxx;h=e3e37b6d27e25d32e48a53c5bcc025f8a91fc2ec;hb=64ce231705b3000e18a69c2b610a10288bff1109;hp=3edbed60338bbc018a4e59f396bee3ed4e708158;hpb=bd999ca090853e68acb7b0f4aab3d875afd8c010;p=simgear.git diff --git a/simgear/hla/RTIObjectInstance.hxx b/simgear/hla/RTIObjectInstance.hxx index 3edbed60..e3e37b6d 100644 --- a/simgear/hla/RTIObjectInstance.hxx +++ b/simgear/hla/RTIObjectInstance.hxx @@ -133,6 +133,8 @@ public: } else { _attributeData[i].setUpdateEnabled(false); _attributeData[i].setOwned(false); + if (getAttributeSubscribed(i)) + _attributeData[i].setRequestUpdate(true); } } _attributeData.resize(numAttributes); @@ -140,9 +142,13 @@ public: if (getAttributePublished(i)) { _attributeData[i].setUpdateEnabled(true); _attributeData[i].setOwned(owned); + if (!owned && getAttributeSubscribed(i)) + _attributeData[i].setRequestUpdate(true); } else { _attributeData[i].setUpdateEnabled(false); _attributeData[i].setOwned(false); + if (getAttributeSubscribed(i)) + _attributeData[i].setRequestUpdate(true); } } }