1
0
Fork 0

Remove remaining use of fabsf() from the code, avoid an OSG header issue on OS-X.

This commit is contained in:
James Turner 2011-05-22 16:30:18 +01:00
parent f82caf49a3
commit b357dd7ac3

View file

@ -269,7 +269,7 @@ public:
_offset = n->getFloatValue("offset", offset);
_min = n->getFloatValue("min", min);
_max = n->getFloatValue("max", max);
_coeff = 1.0 - 1.0 / powf(10, fabsf(n->getFloatValue("damp", 0.0)));
_coeff = 1.0 - 1.0 / powf(10, fabs(n->getFloatValue("damp", 0.0)));
SGPropertyNode *p = ((SGPropertyNode *)n)->getNode("property", false);
if (p) {
const char *path = p->getStringValue();