summaryrefslogtreecommitdiff
path: root/src/aircraft.h
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2018-11-03 13:24:36 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2018-11-25 00:47:34 +0100
commitc84b9913bd80e3c596e00faabc0a924c12a9cb38 (patch)
tree91a536e498f138c1a7793d9e533e71abb43fe287 /src/aircraft.h
parentf35a59fd3834f55bf6bbfac5c487affcc993475c (diff)
downloadopenttd-c84b9913bd80e3c596e00faabc0a924c12a9cb38.tar.xz
Fix #6676: Prevent helicopters from stopping in midair during some kinds of landing
This adds a new flag that gets stored in the savegame, but it should still be compatible both ways, hence no save version bump.
Diffstat (limited to 'src/aircraft.h')
-rw-r--r--src/aircraft.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/aircraft.h b/src/aircraft.h
index d4deba580..f4fce09be 100644
--- a/src/aircraft.h
+++ b/src/aircraft.h
@@ -45,6 +45,8 @@ enum AirVehicleFlags {
* landscape at a fixed altitude. This only has effect when there are more than 15 height levels. */
VAF_IN_MAX_HEIGHT_CORRECTION = 1, ///< The vehicle is currently lowering its altitude because it hit the upper bound.
VAF_IN_MIN_HEIGHT_CORRECTION = 2, ///< The vehicle is currently raising its altitude because it hit the lower bound.
+
+ VAF_HELI_DIRECT_DESCENT = 3, ///< The helicopter is descending directly at its destination (helipad or in front of hangar)
};
static const int ROTOR_Z_OFFSET = 5; ///< Z Offset between helicopter- and rotorsprite.