diff options
author | frosch <frosch@openttd.org> | 2009-11-07 22:47:54 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-11-07 22:47:54 +0000 |
commit | ba1fc280e3b0c13baedc2ef54dabb2deec41c818 (patch) | |
tree | f8f51f5d18355d9205052bad2e90e068e9bfacb6 /src/engine_type.h | |
parent | 7984d90c40f4d55cad9f34d0acac27beb701a63a (diff) | |
download | openttd-ba1fc280e3b0c13baedc2ef54dabb2deec41c818.tar.xz |
(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
Diffstat (limited to 'src/engine_type.h')
-rw-r--r-- | src/engine_type.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine_type.h b/src/engine_type.h index a1a9ccada..234bc27e3 100644 --- a/src/engine_type.h +++ b/src/engine_type.h @@ -12,6 +12,7 @@ #ifndef ENGINE_TYPE_H #define ENGINE_TYPE_H +#include "economy_type.h" #include "rail_type.h" #include "cargo_type.h" #include "vehicle_type.h" @@ -48,7 +49,7 @@ struct RailVehicleInfo { uint16 power; ///< Power of engine; For multiheaded engines the sum of both engine powers. uint16 weight; ///< Weight of vehicle; For multiheaded engines the weight of each single engine. byte running_cost; ///< Running cost of engine; For multiheaded engines the sum of both running costs. - byte running_cost_class; + Price running_cost_class; EngineClass engclass; ///< Class of engine for this vehicle byte capacity; ///< Cargo capacity of vehicle; For multiheaded engines the capacity of each single engine. byte ai_passenger_only; ///< Bit value to tell AI that this engine is for passenger use only @@ -95,7 +96,7 @@ struct RoadVehicleInfo { byte image_index; byte cost_factor; byte running_cost; - byte running_cost_class; + Price running_cost_class; SoundID sfx; uint16 max_speed; ///< Maximum speed in mph/3.2 units byte capacity; |