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 | 9a4465f9c0db69b3d9da903b67b678a0ee3a565e (patch) | |
tree | dd060d5dca61f8a204e1ed8e93a87362d44f4945 /vehicle.c | |
parent | e58739c55963b22a345e3efb78e7c10d5646b383 (diff) | |
download | openttd-9a4465f9c0db69b3d9da903b67b678a0ee3a565e.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 |