diff options
author | frosch <frosch@openttd.org> | 2010-02-22 21:46:20 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-02-22 21:46:20 +0000 |
commit | 63b01f2009be96797bc3a08c6391516604e00e86 (patch) | |
tree | caf3307a34205ae1043eb9d377336510b13cd400 /src/engine.cpp | |
parent | fee0743ba99da6301ac6e9b0eda05b06e1c60a69 (diff) | |
download | openttd-63b01f2009be96797bc3a08c6391516604e00e86.tar.xz |
(svn r19218) -Feature: [NewGRF] Add CB36 support for aircraft properties 0F and 11. (Eddi)
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index f3d8133ec..8e6c41ba0 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -184,12 +184,12 @@ uint Engine::GetDisplayDefaultCapacity(uint16 *mail_capacity) const return GetEngineProperty(this->index, PROP_SHIP_CARGO_CAPACITY, this->u.ship.capacity); case VEH_AIRCRAFT: { - uint capacity = this->u.air.passenger_capacity; + uint capacity = GetEngineProperty(this->index, PROP_AIRCRAFT_PASSENGER_CAPACITY, this->u.air.passenger_capacity);; CargoID cargo = this->GetDefaultCargoType(); if (IsCargoInClass(cargo, CC_PASSENGERS)) { - if (mail_capacity != NULL) *mail_capacity = this->u.air.mail_capacity; + if (mail_capacity != NULL) *mail_capacity = GetEngineProperty(this->index, PROP_AIRCRAFT_MAIL_CAPACITY, this->u.air.mail_capacity); } else { - capacity += this->u.air.mail_capacity; + capacity += GetEngineProperty(this->index, PROP_AIRCRAFT_MAIL_CAPACITY, this->u.air.mail_capacity); } switch (cargo) { case CT_PASSENGERS: |