Mercurial > hg > openttd
changeset 13866:65a8c090e980 draft
(svn r18395) -Fix (r17415): helicopters can turn freely even while in the air
author | yexo <yexo@openttd.org> |
---|---|
date | Fri, 04 Dec 2009 09:13:15 +0000 |
parents | 9800af66dccb |
children | 6743b6fffc6e |
files | src/aircraft_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -998,7 +998,7 @@ /* 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;