(svn r17480) -Fix (r17405): fast aircraft could get stuck flyin gin circles trying to reach a certain point

This commit is contained in:
yexo 2009-09-08 22:39:19 +00:00
parent 99af06dd30
commit 37d702b2ce
1 changed files with 1 additions and 1 deletions

View File

@ -1073,7 +1073,7 @@ static bool AircraftController(Aircraft *v)
if (newdir != v->direction) {
if (amd->flag & AMED_SLOWTURN) {
if (v->load_unload_time_rem == 0 || newdir == v->last_direction) {
v->load_unload_time_rem = 8;
v->load_unload_time_rem = 1 << (_settings_game.vehicle.plane_speed - 1);
v->last_direction = v->direction;
v->direction = newdir;
}