]> git.mxchange.org Git - simgear.git/commitdiff
hla: Initially request update for subscribed unowned attributes.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Tue, 4 Oct 2011 18:55:44 +0000 (20:55 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Tue, 4 Oct 2011 18:55:44 +0000 (20:55 +0200)
simgear/hla/RTIObjectInstance.hxx

index 3edbed60338bbc018a4e59f396bee3ed4e708158..e3e37b6d27e25d32e48a53c5bcc025f8a91fc2ec 100644 (file)
@@ -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);
             }
         }
     }