1
0
Fork 0

make the aiship speed respect strictly the target speed when close enough, should improve drifting carrier on mp

This commit is contained in:
jano 2020-01-26 10:22:15 +01:00
parent c770358f13
commit 395a654692

View file

@ -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