diff options
author | peter1138 <peter1138@openttd.org> | 2008-02-04 11:28:12 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-02-04 11:28:12 +0000 |
commit | a528dc89c7a93fd6ee17498129a6148cd97964ed (patch) | |
tree | f7db516aadbc810aeb4f07d3c76ab35a6ed475b3 /src/engine.h | |
parent | 2588879c6d266741b1a9f6a38593d8a3a717a760 (diff) | |
download | openttd-a528dc89c7a93fd6ee17498129a6148cd97964ed.tar.xz |
(svn r12054) -Cleanup: Use VehicleType instead of byte for vehicle types...
Diffstat (limited to 'src/engine.h')
-rw-r--r-- | src/engine.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine.h b/src/engine.h index 38f824522..66eb97b17 100644 --- a/src/engine.h +++ b/src/engine.h @@ -168,7 +168,7 @@ void DrawAircraftEngine(int x, int y, EngineID engine, SpriteID pal); void LoadCustomEngineNames(); void DeleteCustomEngineNames(); -bool IsEngineBuildable(EngineID engine, byte type, PlayerID player); +bool IsEngineBuildable(EngineID engine, VehicleType type, PlayerID player); CargoID GetEngineCargoType(EngineID engine); enum { @@ -185,14 +185,14 @@ enum { ROAD_ENGINES_INDEX = NUM_TRAIN_ENGINES, }; -static inline EngineID GetFirstEngineOfType(byte type) +static inline EngineID GetFirstEngineOfType(VehicleType type) { const EngineID start[] = {0, ROAD_ENGINES_INDEX, SHIP_ENGINES_INDEX, AIRCRAFT_ENGINES_INDEX}; return start[type]; } -static inline EngineID GetLastEngineOfType(byte type) +static inline EngineID GetLastEngineOfType(VehicleType type) { const EngineID end[] = { NUM_TRAIN_ENGINES, |