summaryrefslogtreecommitdiff
path: root/src/engine.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-02-04 11:28:12 +0000
committerpeter1138 <peter1138@openttd.org>2008-02-04 11:28:12 +0000
commita528dc89c7a93fd6ee17498129a6148cd97964ed (patch)
treef7db516aadbc810aeb4f07d3c76ab35a6ed475b3 /src/engine.h
parent2588879c6d266741b1a9f6a38593d8a3a717a760 (diff)
downloadopenttd-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.h6
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,