(svn r18395) -Fix (r17415): helicopters can turn freely even while in the air
This commit is contained in:
@@ -998,7 +998,7 @@ static bool AircraftController(Aircraft *v)
|
|||||||
/* Turn. Do it slowly if in the air. */
|
/* Turn. Do it slowly if in the air. */
|
||||||
Direction newdir = GetDirectionTowards(v, x + amd->x, y + amd->y);
|
Direction newdir = GetDirectionTowards(v, x + amd->x, y + amd->y);
|
||||||
if (newdir != v->direction) {
|
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 (v->time_counter == 0 || newdir == v->last_direction) {
|
||||||
if (newdir == v->last_direction) {
|
if (newdir == v->last_direction) {
|
||||||
v->number_consecutive_turns = 0;
|
v->number_consecutive_turns = 0;
|
||||||
|
Reference in New Issue
Block a user