1
0
Fork 0

better use zero sensitive area to detect a missing (or inoperable) button,

because a missing <button> default to 0, which makes a lot of sense
This commit is contained in:
mfranz 2006-02-02 00:00:27 +00:00
parent 1c27be1cb4
commit beff0cef60

View file

@ -176,7 +176,7 @@ readAction (const SGPropertyNode * node, float w_scale, float h_scale)
vector<SGPropertyNode_ptr>bindings = node->getChildren("binding"); vector<SGPropertyNode_ptr>bindings = node->getChildren("binding");
// button-less actions are fired initially, then fogotten // button-less actions are fired initially, then fogotten
if (!node->hasValue("button")) { if (!node->hasValue("w") || !node->hasValue("h")) {
for (i = 0; i < bindings.size(); i++) { for (i = 0; i < bindings.size(); i++) {
FGBinding b(bindings[i]); FGBinding b(bindings[i]);
b.fire(); b.fire();