diff options
author | terkhen <terkhen@openttd.org> | 2010-08-02 14:50:26 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-08-02 14:50:26 +0000 |
commit | 5c633159caf434db5e63f2c4efb109b371300ec0 (patch) | |
tree | 8222dd0aae39f590e57a843db87ac87089329156 | |
parent | 1fd66d7cc489702557208a9d27c75ba9355e39fa (diff) | |
download | openttd-5c633159caf434db5e63f2c4efb109b371300ec0.tar.xz |
(svn r20300) -Add: Air drag field to the rail engine information.
-rw-r--r-- | src/engine_type.h | 1 | ||||
-rw-r--r-- | src/table/engines.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/engine_type.h b/src/engine_type.h index e1b892fb4..777038844 100644 --- a/src/engine_type.h +++ b/src/engine_type.h @@ -55,6 +55,7 @@ struct RailVehicleInfo { byte visual_effect; ///< Bitstuffed NewGRF visual effect data byte shorten_factor; ///< length on main map for this type is 8 - shorten_factor byte tractive_effort; ///< Tractive effort coefficient + byte air_drag; ///< Coefficient of air drag byte user_def_data; ///< Property 0x25: "User-defined bit mask" Used only for (very few) NewGRF vehicles }; diff --git a/src/table/engines.h b/src/table/engines.h index 5c47f6097..63c830ddf 100644 --- a/src/table/engines.h +++ b/src/table/engines.h @@ -363,7 +363,7 @@ static const EngineInfo _orig_engine_info[] = { * @param k engclass * Tractive effort coefficient by default is the same as TTDPatch, 0.30*256=76 */ -#define RVI(a, b, c, d, e, f, g, h, i, j, k) { a, b, c, {j}, d, e, f, g, h, k, i, 0, 0, 0, 0, 0, 76, 0 } +#define RVI(a, b, c, d, e, f, g, h, i, j, k) { a, b, c, {j}, d, e, f, g, h, k, i, 0, 0, 0, 0, 0, 76, 0, 0 } #define M RAILVEH_MULTIHEAD #define W RAILVEH_WAGON #define G RAILVEH_SINGLEHEAD |