# HG changeset patch
# User HackaLittleBit
# Date 1390737875 0
#      Sun Jan 26 12:04:35 2014 +0000
# Node ID 4cc9845483d90d260ca8f61b37b70eff8be2143e
# Parent  06fd0a77a754f44b93b2ab054f363e5bc8a3fda3
Base flying altidude. Has to be multiple of TILE_HEIGHT.
184 was chosen because it is the minimum height for not slicing high rise buildings.
Length between take-off point and reaching altidude point are related to this number.
Length between final descend point and touch-down point are related to this number.

diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -41,10 +41,15 @@
 
 static const int ROTOR_Z_OFFSET         = 5;    ///< Z Offset between helicopter- and rotorsprite.
 
-static const int PLANE_HOLDING_ALTITUDE = 150;  ///< Altitude of planes in holding pattern (= lowest flight altitude).
+/**
+ * Base flying altidude. Has to be multiple of TILE_HEIGHT.
+ * 184 was chosen because it is the minimum height for not slicing high rise buildings.
+ * Length between take-off point and reaching altidude point are related to this number.
+ * Length between final descend point and touch-down point are related to this number.
+ */
+static const int MIN_FLIGHT_ALTITUDE    = 184;  ///< Minimum altidude to pass high buildings and mountains  (= lowest flight altitude).
 static const int HELI_FLIGHT_ALTITUDE   = 184;  ///< Normal flight altitude of helicopters.
 
-
 void Aircraft::UpdateDeltaXY(Direction direction)
 {
 	this->x_offs = -1;
@@ -671,12 +676,12 @@
  */
 int GetAircraftFlyingAltitude(const Aircraft *v)
 {
-	if (v->subtype == AIR_HELICOPTER) return HELI_FLIGHT_ALTITUDE;
+	if (v->subtype == AIR_HELICOPTER) return MIN_FLIGHT_ALTITUDE;
 
 	/* Make sure Aircraft fly no lower so that they don't conduct
 	 * CFITs (controlled flight into terrain)
 	 */
-	int base_altitude = PLANE_HOLDING_ALTITUDE;
+	int base_altitude = MIN_FLIGHT_ALTITUDE;
 
 	/* Make sure eastbound and westbound planes do not "crash" into each
 	 * other by providing them with vertical separation
@@ -976,7 +981,7 @@
 		}
 
 		/* Let the plane drop from normal flight altitude to holding pattern altitude */
-		if ((amd.flag & AMED_HOLD) && (z > PLANE_HOLDING_ALTITUDE)) z--;
+		if ((amd.flag & AMED_HOLD) && (z > MIN_FLIGHT_ALTITUDE)) z--;
 
 		if (amd.flag & AMED_LAND) {
 			if (st->airport.tile == INVALID_TILE) {
