diff options
author | frosch <frosch@openttd.org> | 2009-08-17 18:33:48 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-08-17 18:33:48 +0000 |
commit | 8bd029015e312becdaf889337461b9fead742509 (patch) | |
tree | 3ac2ef616460f7c21531a54cec1a924faaac0fe3 /src/vehicle.cpp | |
parent | 7f030110b0da8db35ad661237a8a1ea5d1c8d8bf (diff) | |
download | openttd-8bd029015e312becdaf889337461b9fead742509.tar.xz |
(svn r17209) -Codechange: Move cargo_type from (Rail|Road|Ship)VehicleInfo to EngineInfo.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 4943e6902..7b67ee655 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -687,23 +687,6 @@ bool CanRefitTo(EngineID engine_type, CargoID cid_to) return HasBit(EngInfo(engine_type)->refit_mask, cid_to); } -/** Find the first cargo type that an engine can be refitted to. - * @param engine_type Which engine to find cargo for. - * @return A climate dependent cargo type. CT_INVALID is returned if not refittable. - */ -CargoID FindFirstRefittableCargo(EngineID engine_type) -{ - uint32 refit_mask = EngInfo(engine_type)->refit_mask; - - if (refit_mask != 0) { - for (CargoID cid = 0; cid < NUM_CARGO; cid++) { - if (HasBit(refit_mask, cid)) return cid; - } - } - - return CT_INVALID; -} - /** Learn the price of refitting a certain engine * @param engine_type Which engine to refit * @return Price for refitting |