make the aiship speed respect strictly the target speed when close enough, should improve drifting carrier on mp
This commit is contained in:
parent
c770358f13
commit
395a654692
1 changed files with 2 additions and 0 deletions
|
@ -287,6 +287,8 @@ void FGAIShip::Run(double dt) {
|
|||
if (speed_diff < 0.0)
|
||||
speed -= _speed_constant * dt;
|
||||
|
||||
} else {
|
||||
speed = tgt_speed;
|
||||
}
|
||||
|
||||
// do not allow unreasonable speeds
|
||||
|
|
Loading…
Reference in a new issue