diff options
author | celestar <celestar@openttd.org> | 2005-01-07 09:51:16 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-01-07 09:51:16 +0000 |
commit | b2c47cf7d6465dbe6bc1f599ecdcb0947f1a95d7 (patch) | |
tree | dd060d5dca61f8a204e1ed8e93a87362d44f4945 /vehicle.c | |
parent | 45284100533d14999c7dee487d05d9c0f63c7111 (diff) | |
download | openttd-b2c47cf7d6465dbe6bc1f599ecdcb0947f1a95d7.tar.xz |
(svn r1412) -Feature/Fix: Aircraft refit options have been restricted to "sane"
values.
-Feature: aircraft can now be refitted "mail-only"
-Feature: Passengers aircraft now ignore the amount of mail for "full
load any" options
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -597,6 +597,14 @@ static bool CanFillVehicle_FullLoadAny(Vehicle *v) { uint32 full = 0, not_full = 0; + //special handling of aircraft + + //if the aircraft carries passengers and is NOT full, then + //continue loading, no matter how much mail is in + if ((v->type == VEH_Aircraft) && (v->cargo_type == CT_PASSENGERS) && (v->cargo_cap != v->cargo_count)) { + return true; + } + // patch should return "true" to continue loading, i.e. when there is no cargo type that is fully loaded. do { //Should never happen, but just in case future additions change this |