1
0
Fork 0

Maik JUSTUS: add a missing pair of parens and rounding

This commit is contained in:
mfranz 2007-01-24 23:39:48 +00:00
parent 85c48d4e2e
commit c32ffcd3c9

View file

@ -276,8 +276,8 @@ void FGAIMultiplayer::update(double dt)
case SGPropertyNode::INT: case SGPropertyNode::INT:
case SGPropertyNode::BOOL: case SGPropertyNode::BOOL:
case SGPropertyNode::LONG: case SGPropertyNode::LONG:
ival = (int) (1-tau)*((double) (*prevPropIt)->int_value) + ival = (int) (0.5+(1-tau)*((double) (*prevPropIt)->int_value) +
tau*((double) (*nextPropIt)->int_value); tau*((double) (*nextPropIt)->int_value));
pIt->second->setIntValue(ival); pIt->second->setIntValue(ival);
//cout << "Int: " << ival << "\n"; //cout << "Int: " << ival << "\n";
break; break;