From 8bed302bcfaf7fb17df69cabefce4f87bc686561 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 4 Dec 2009 09:13:15 +0000 Subject: (svn r18395) -Fix (r17415): helicopters can turn freely even while in the air --- src/aircraft_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 12315894e..d363fd3d4 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -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; -- cgit v1.2.3-54-g00ecf