diff options
author | rubidium <rubidium@openttd.org> | 2008-12-16 22:02:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-16 22:02:12 +0000 |
commit | c7c65cf5bc32fc6c4fe42f1839745097643c5212 (patch) | |
tree | 2eec1532bcceec638b2cb9b9b38dc6280ecc303a /src/engine_func.h | |
parent | b177c5fd9e41d75a44fad47a8572fef93e29c9a0 (diff) | |
download | openttd-c7c65cf5bc32fc6c4fe42f1839745097643c5212.tar.xz |
(svn r14683) -Change: only say a engine/vehicle is refittable when it can be refitted to at least two cargo type or when it has subcargos.
NOTE: it is still possible that a vehicle is marked refittable when there is nothing to refit to, e.g. when only one subcargo is available but that cannot be determined without a vehicle chain.
Diffstat (limited to 'src/engine_func.h')
-rw-r--r-- | src/engine_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/engine_func.h b/src/engine_func.h index 595644375..942f90d1a 100644 --- a/src/engine_func.h +++ b/src/engine_func.h @@ -26,6 +26,7 @@ void LoadCustomEngineNames(); void DeleteCustomEngineNames(); bool IsEngineBuildable(EngineID engine, VehicleType type, CompanyID company); +bool IsEngineRefittable(EngineID engine); CargoID GetEngineCargoType(EngineID engine); void SetCachedEngineCounts(); |