Fix artic engines with no capacity on leading part in build window

Engines were being shown as not having any capacity overall
This commit is contained in:
Jonathan G Rennison
2023-01-07 00:26:04 +00:00
parent e816c2416a
commit 9cff3666ae
3 changed files with 34 additions and 3 deletions

View File

@@ -114,6 +114,7 @@ struct Engine : EnginePool::PoolItem<&_engine_pool> {
uint DetermineCapacity(const Vehicle *v, uint16 *mail_capacity = nullptr) const;
bool CanCarryCargo() const;
bool CanPossiblyCarryCargo() const;
/**
* Determines the default cargo capacity of an engine for display purposes.