mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r18395) -Fix (r17415): helicopters can turn freely even while in the air
This commit is contained in:
parent
f5f6fc16f6
commit
8bed302bcf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue