summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-12-04 09:13:15 +0000
committeryexo <yexo@openttd.org>2009-12-04 09:13:15 +0000
commit8bed302bcfaf7fb17df69cabefce4f87bc686561 (patch)
treed8b0c394e7c570133fca06ea5f80000adfd1e0e8 /src
parentf5f6fc16f6425a7b35dd9b461628a65bcb92eacb (diff)
downloadopenttd-8bed302bcfaf7fb17df69cabefce4f87bc686561.tar.xz
(svn r18395) -Fix (r17415): helicopters can turn freely even while in the air
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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;