(svn r26866) -Change: make aircraft ascend/descend when they are too close to the ground or too far away (based on patch by ic111)

This commit is contained in:
rubidium
2014-09-21 06:35:34 +00:00
parent 51e2c2bf62
commit 39ded38c01
5 changed files with 126 additions and 33 deletions

View File

@@ -200,7 +200,8 @@ void UpdateOldAircraft()
if (a->subtype == AIR_HELICOPTER) a->Next()->Next()->cur_speed = 32;
/* set new position x,y,z */
SetAircraftPosition(a, gp.x, gp.y, GetAircraftFlyingAltitude(a));
GetAircraftFlightLevelBounds(a, &a->z_pos, NULL);
SetAircraftPosition(a, gp.x, gp.y, GetAircraftFlightLevel(a));
}
}
}