From: Mathias Froehlich Date: Tue, 4 Oct 2011 18:55:44 +0000 (+0200) Subject: hla: Initially request update for subscribed unowned attributes. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=64ce231705b3000e18a69c2b610a10288bff1109;p=simgear.git hla: Initially request update for subscribed unowned attributes. --- 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); } } }