Maik JUSTUS: add a missing pair of parens and rounding
This commit is contained in:
parent
85c48d4e2e
commit
c32ffcd3c9
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue