]> git.mxchange.org Git - flightgear.git/commitdiff
let n.getAttribute("last") return SGPropertyNode::LAST_USED_ATTRIBUTE
authormfranz <mfranz>
Thu, 10 Jul 2008 10:58:06 +0000 (10:58 +0000)
committermfranz <mfranz>
Thu, 10 Jul 2008 10:58:06 +0000 (10:58 +0000)
(this is the same constant value for all properties)

src/Scripting/nasal-props.cxx

index 6e61900474a33c7e4b994e56e09ccf989fb70f2e..3133d32acd1348e75e2c2795bc4c8be6ce0f2522 100644 (file)
@@ -87,6 +87,7 @@ static naRef f_getAttribute(naContext c, naRef me, int argc, naRef* args)
     else if(!strcmp(a, "references"))  return naNum(node->getNumRefs());
     else if(!strcmp(a, "tied"))        return naNum((*node)->isTied());
     else if(!strcmp(a, "alias"))       return naNum((*node)->isAlias());
+    else if(!strcmp(a, "last"))        return naNum(SGPropertyNode::LAST_USED_ATTRIBUTE);
     else if(!strcmp(a, "readable"))    attr = SGPropertyNode::READ;
     else if(!strcmp(a, "writable"))    attr = SGPropertyNode::WRITE;
     else if(!strcmp(a, "archive"))     attr = SGPropertyNode::ARCHIVE;