(svn r18395) -Fix (r17415): helicopters can turn freely even while in the air

This commit is contained in:
yexo 2009-12-04 09:13:15 +00:00
parent f5f6fc16f6
commit 8bed302bcf
1 changed files with 1 additions and 1 deletions

View File

@ -998,7 +998,7 @@ static bool AircraftController(Aircraft *v)
/* Turn. Do it slowly if in the air. */
Direction newdir = GetDirectionTowards(v, x + amd->x, y + amd->y);
if (newdir != v->direction) {
if (amd->flag & AMED_SLOWTURN && v->number_consecutive_turns < 8) {
if (amd->flag & AMED_SLOWTURN && v->number_consecutive_turns < 8 && v->subtype == AIR_AIRCRAFT) {
if (v->time_counter == 0 || newdir == v->last_direction) {
if (newdir == v->last_direction) {
v->number_consecutive_turns = 0;